Git Product home page Git Product logo

Comments (6)

claremacrae avatar claremacrae commented on June 5, 2024 1

(that you have an approval test running, I mean...)

from approvaltests.cpp.

claremacrae avatar claremacrae commented on June 5, 2024

B_Prevent_#define_EMPTY_breaking_in_subsequent_includes_-fixes#7.txt

from approvaltests.cpp.

claremacrae avatar claremacrae commented on June 5, 2024

B_Remove_#define_EMPTY_which_broke_code_in_later_includes_-fixes#7.txt

from approvaltests.cpp.

claremacrae avatar claremacrae commented on June 5, 2024

Thanks for reporting this!

I've been able to reproduce it by adding code based on your enum example above - and have then tried two ways of fixing it.

The first patch above adds the #undef, as suggested.

The second patch above uses a different approach - a helper function that returns the "empty" container. This is cleaner as there's no chance that we stomp on an earlier #define of EMPTY... I'm not super happy with the names though - as empty() returns a container with one value in!

@isidore and I are pairing on this library later this week, so we'll chat about this then and finalise a fix - as well as hopefully doing a new release, to make the fix available...

Note to self: I'd like to try and remove #define STATIC in Macros.h as well - or rename it to make a clash much less likely.

from approvaltests.cpp.

saulthu avatar saulthu commented on June 5, 2024

Thanks for the quick action! I saw your cpponsea talk on youtube and liked what I saw so gave it a try. Have my first approval test running now :)

from approvaltests.cpp.

claremacrae avatar claremacrae commented on June 5, 2024

I can't tell you how happy that makes me!!!

from approvaltests.cpp.

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.