Boost logo

Boost :

Subject: Re: [boost] [typeof] deducing type at class level
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2011-06-22 13:00:57


On 22/06/2011 18:42, Jeroen Habraken wrote:

> This can be done using boost::type_traits::add_reference I believe:
>
> template<class T>
> typename add_reference<T>::type make();

Actually there is a declval somewhere in boost that more or less does
this, unfortunately it returns by value in C++03, which is a big no-no
for me, since it restricts it to copyable types.


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