Giter Site home page Giter Site logo

Usage of boost::void_t about type_traits HOT 6 CLOSED

boostorg avatar boostorg commented on September 12, 2024
Usage of boost::void_t

from type_traits.

Comments (6)

jzmaddock avatar jzmaddock commented on September 12, 2024 2

Merged to develop.

from type_traits.

glenfe avatar glenfe commented on September 12, 2024 1

Any void_t<X> can be typename make_void<X>::type to support implementations that do not support C++11 template aliases.

from type_traits.

glenfe avatar glenfe commented on September 12, 2024 1

Pull request #115

from type_traits.

jzmaddock avatar jzmaddock commented on September 12, 2024

This causes compile issues on platforms using those includes where template aliases are not available (or BOOST_NO_CXX11_TEMPLATE_ALIASES is set).

Is there a specific compiler configuration that's causing you problems? Note that all the traits that use void_t do have workarounds in place for older compilers.

from type_traits.

ax3l avatar ax3l commented on September 12, 2024

I just saw it with an old work-around with nvcc. it's not like nvcc does not support template aliases, but we used the work-around to deactivate another issue for some time.

void_t has no fallback, but is used in regular traits since 1.67.0

Don't need it therefore anymore, just wanted to make sure you aware that the logic of guarding void_t creation does not work with the rest anymore.

from type_traits.

ax3l avatar ax3l commented on September 12, 2024

Yes, that's what I am suggesting: use boost::make_void<>::type in those places?

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.