
Now that C++11 (formerly C++0x) is done, are there any plans to add the type traits to Boost that we don't already have? See http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3290.pdf --Beman

Beman Dawes <bdawes@acm.org> writes:
Now that C++11 (formerly C++0x) is done, are there any plans to add the type traits to Boost that we don't already have?
Just as a side note, in about a week BoostPro will be pushing up an intrinsics-level implementation of most of these type traits into Clang, which should make it trivial to implement them for that compiler. John

Now that C++11 (formerly C++0x) is done, are there any plans to add the type traits to Boost that we don't already have?
Just as a side note, in about a week BoostPro will be pushing up an intrinsics-level implementation of most of these type traits into Clang, which should make it trivial to implement them for that compiler.
Cool, but this is the problem really: as far as I can remember the remaining C++11 traits all need compiler support - so the user might just as well use the std:: versions? Unless I'm missing something.... John.

On 18/04/11 08:25, John Maddock wrote:
Now that C++11 (formerly C++0x) is done, are there any plans to add the type traits to Boost that we don't already have?
Just as a side note, in about a week BoostPro will be pushing up an intrinsics-level implementation of most of these type traits into Clang, which should make it trivial to implement them for that compiler.
Cool, but this is the problem really: as far as I can remember the remaining C++11 traits all need compiler support - so the user might just as well use the std:: versions?
Pessimistic implementations can be provided for compilers which lack the intrinsics (e.g. make is_standard_layout forward to is_pod or just false). I believe Boost.TypeTraits already does this for some traits. John Bytheway

Just as a side note, in about a week BoostPro will be pushing up an intrinsics-level implementation of most of these type traits into Clang, which should make it trivial to implement them for that compiler.
Cool, but this is the problem really: as far as I can remember the remaining C++11 traits all need compiler support - so the user might just as well use the std:: versions?
Pessimistic implementations can be provided for compilers which lack the intrinsics (e.g. make is_standard_layout forward to is_pod or just false). I believe Boost.TypeTraits already does this for some traits.
True enough, John.
participants (4)
-
Beman Dawes
-
John Bytheway
-
John Maddock
-
John Wiegley