Coder Social home page Coder Social logo

Compile error about catch2 HOT 2 CLOSED

catchorg avatar catchorg commented on May 21, 2024
Compile error

from catch2.

Comments (2)

philsquared avatar philsquared commented on May 21, 2024

I meant to respond to this before. I did start looking into it.
It boils to down to a thorny issue that can't be fully resolved in C++03 (because of the untyped NULL problem).
It looks like I will have accept a warning if compiling at high warning levels (but at least it will compile).

I'll try to finish off what I have been doing and get it in shortly.
In the meantime I believe you can just write the expression without the == NULL.

from catch2.

philsquared avatar philsquared commented on May 21, 2024

Just got back to this.
I aborted my previous investigation as it was taking me down an increasingly more complex series of workarounds!
Just looked again and the specific case here seems to be addressed by adding a couple of compare() overloads to the evaluators.
At least my own reproduction of this issue now compiles are runs correctly.

I believe there are still some more int/ ptr compare issues I need to iron out - but for now I think this issue can be closed.

from catch2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.