Boost logo

Boost :

From: Zara (yozara_at_[hidden])
Date: 2006-02-28 08:18:52


On Tue, 28 Feb 2006 12:42:01 +0000 (UTC), "AlisdairM"
<alisdair.meredith_at_[hidden]> wrote:

>John Maddock wrote:
>
>> Just in case you hadn't realised: add_const< add_ref< T > > and
>> add_ref< add_const< T > > should produce different results :-)
>
>I took the ::type as read ;?)
>
>Unless that is not what you are referring to, in which case I really do
>need educating!
>
>i.e: I assume the following are the same type (and not just equivalent)
>
>typedef typename add_ref< add_const< T > >::type ref_const_t;

Should give const T&

>typedef typename add_const< add_ref< T > >::type const_ref_t;

Should give T&

If I am right, both types are different

regards,

Zara


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