Coder Social home page Coder Social logo

Comments (5)

uecasm avatar uecasm commented on July 18, 2024

Perhaps the intent is to use the boost traits instead, but in that case the ::boost:: namespace must be explicitly specified, since it's in a macro context and can't assume that it's being used inside the boost namespace.

Most of the clang-specific macro definitions in this area appear to have the same problem, although oddly these particular ones appear to do it both ways for some reason.

from type_traits.

uecasm avatar uecasm commented on July 18, 2024

Although while the above is definitely a bug in its own right, possibly of note is that the location that actually flagged the error to me was this:

Which does happen to be in the boost namespace. Which suggests that there's an additional problem of a missing #include dependency. Though it looks like ad32684 fixed that particular issue.

from type_traits.

jzmaddock avatar jzmaddock commented on July 18, 2024

This should have been fixed in ad32684#diff-6f32db8e7667635f00953149c5f40853.

Can you please update to 1.70 and report back?

from type_traits.

uecasm avatar uecasm commented on July 18, 2024

Did you see my last comment? I acknowledged that.

The macros still have public names (even if perhaps they are not intended for public use -- in which case perhaps they should be renamed), and in their current form they are implemented inconsistently and won't work if used outside of the boost namespace.

from type_traits.

jzmaddock avatar jzmaddock commented on July 18, 2024

The macros are not intended for use anywhere except inside the type traits library.

Yes, they are documented: but that's so that folks can implement them for compilers about which we currently know nothing. Which is to say they are a customisation point for type_traits, but NOT user usable.

If you wish to submit a PR to fix the perceived issue that's fine, but unless you have a use case where Boost-1.70 fails, I see no need to chase after this myself.

from type_traits.

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.