
25 Apr
2012
25 Apr
'12
5:37 p.m.
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