Boost logo

Boost :

Subject: Re: [boost] [result_of] Regression: compilation errors on C++03 compilers when defining BOOST_RESULT_OF_USE_DECLTYPE
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2012-04-25 13:37:58


Le 25/04/12 00:14, Michel Morin a écrit :
> If we define BOOST_RESULT_OF_USE_DECLTYPE,
> boost::result_of tries to use decltype-based implementation
> even on C++03 compilers. This causes compilation errors
> and it is a regression on C++03 compilers.
>
How do you expect boost::result_of behave in this case?

I will be surprised if when requesting it to use decltype,
boost::result_of used instead any workaround.

The best think the library could do is to report an explicit error
and/or provide a BOOST_RESULT_OF_USE_DECLTYPE_IF_AVAILABLE which could
behave as you are requesting.

Just my 2cts,
Vicente


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