Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2003-06-16 10:52:38


"ljohrixxx" <ljohri_at_[hidden]> writes:

> 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<From,To>::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

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net