Boost logo

Boost :

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


On 22/06/2011 18:18, Mathias Gaunard wrote:

> #ifndef BOOST_NO_RVALUE_REFERENCES
>
> template<class T>
> typename enable_if<
> is_reference<T>,
> T
> >::type
> make();
>
> template<class T>
> typename disable_if<
> is_reference<T>,
> T&
> >::type
> make();
>
> #else
>
> T&& make();
>
> #endif

Sorry, a template<class T> is missing and it should be ifdef not ifndef,
but you get the idea.


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