Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2006-02-28 05:40:29


> Since I discovered add_const< add_ref< T > > produces a different type
> to add_ref< add_const< T > > on this compiler, I have a defensive
> coding practice of preferring const T over T const. The former should
> always produce a valid C++ type, the latter is strange with
> references.

Just in case you hadn't realised: add_const< add_ref< T > > and add_ref<
add_const< T > > *should* produce different results :-)

John.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk