
Vicente J. Botet Escriba wrote:
Do you mean that if a library author develops and tests with both compilers an even more at once he would need to define BOOST_RESULT_OF_USE_TR1 from the beginning even if defining BOOST_RESULT_OF_USE_DECTYPE works better on some compilers? But the library author cannot know how the users would define their Functors so it can not define these macros.
I think that I need to re-read the result_of documentation to understand correctly what is proposed.
I had thought of this proposal as a third configuration. So, our established migration path from using TR1 by default to using decltype by default would remain, but we would add a third option: a hybrid that could switch between TR1 mode and decltype mode smartly.
Agreed. Hopefully I didn't take the discussion too far afield. The
Daniel Walker wrote: proposal is what you describe, and I believe the main impetus to accept it is so C++11 lambdas can be used in result_of expressions on compilers which have lacking lambdas. Thanks, Nate