Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-12-10 11:46:32

"John Maddock" <john_at_[hidden]> writes:

>> [3] When using BOOST_DEDUCED_TYPENAME, should it be used in all contexts
>> other than in template parameters, e.g.
>> template< typename T > // ok
>> struct demo
>> {
>> typedef BOOST_DEDUCED_TYPENAME T::type type;
>> typedef std::list< BOOST_DEDUCED_TYPENAME T::value_type > list;
>> };
> No, probably only in deduced contexts - see the test program for that macro
> for an example.

Actually on compilers where it's needed, it seems to be safe (and
occasionally neccessary) to use it everywhere except in the place
labelled OK above. We really ought to change it to BOOST_TYPENAME.

( this might be another reason to write template<class T> ;-> )

Dave Abrahams
Boost Consulting

Boost list run by bdawes at, gregod at, cpdaniel at, john at