F6U2 anachronisms warnings
Hello,
I get the Anacronism warning from the file is_convertible.hpp
line: 293
BOOST_TT_AUX_BOOL_TRAIT_DEF2(is_convertible,From,To,
(::boost::detail::is_convertible_impl
"ljohrixxx"
Hello,
I get the Anacronism warning from the file is_convertible.hpp
line: 293 BOOST_TT_AUX_BOOL_TRAIT_DEF2(is_convertible,From,To, (::boost::detail::is_convertible_impl
::value)) The warning is:
/usr/vobs/ThirdParty/boost/boost_1_30_0/boost/type_traits/is_convertib le.hpp", line 239: Warning (Anachronism): Type names qualified by template parameters require "typename". "/usr/vobs/ThirdParty/boost/boost_1_30_0/boost/type_traits/is_converti ble.hpp", line 239: Warning (Anachronism): Type names qualified by template parameters require "typename".
I am using Forte6 U2 compiler on Solaris. Can someone please shed light on what does it mean? I get a whole bunch of similar warnings from many other boost headers.
It means that the foolish Sun compiler can't tell when you're accessing a dependent integral constant (::value) as opposed to a type, and warns incorrectly. Adding the suggested 'typename' would not just silence the warning, but break the code completely. -- Dave Abrahams Boost Consulting www.boost-consulting.com
participants (2)
-
David Abrahams
-
ljohrixxx