Boost logo

Boost :

Subject: Re: [boost] Temporary objects
From: DE (satan66613_at_[hidden])
Date: 2009-11-03 13:25:17


on 02.11.2009 at 23:08
 Thomas Klimpel wrote :
> Boost.Move is really similar to what you are proposing, but it also
> handles the case that the compiler actually supports
> rvalue-references. So BOOST_RV_REF is a macro defined as:

> #ifdef BOOST_HAS_RVALUE_REFS
> #define BOOST_RV_REF(TYPE) TYPE &&
> #else
> #define BOOST_RV_REF(TYPE) boost::rv< TYPE >&
> #endif

> It is true that macros always look ugly, but this is exactly the
> situation where you have to use a macro to abstract away unavoidable language differences.

ok then
i'm stopping panic right now
i understand your point and i think that it is probably right
however i'm stuck to my own opinion

-- 
Pavel

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