On 4 November 2013 05:35, Peter Dimov
No, I wasn't referring to C++14, as type traits are in C++11 (and were in TR1 before that.) My point was that Boost components that have been accepted into the standard are already obsolete, so investing any significant effort for them might not pay off.
The annoyance I've run into is mixing types traits from both std and Boost (Boost has more type traits, so I cannot eliminate the dependency on Boost in this case). When doing tag dispatching, they have different tags, as boost::true_type is a type unrelated to std::true_type. On possible improvement for C++11 would be to have boost::mpl::integral_c (the top level base class of boost::true_type) publicly derive from std::integral_constant, but I don't know what the ramifications of that would be. -- Nevin ":-)" Liber mailto:nevin@eviloverlord.com (847) 691-1404