BOOST_NO_RESULT_OF

I want this macro for the parameters library. Currently, result_of uses #if !defined(BOOST_NO_SFINAE) && !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) And otherwise, gives an #error That makes it hard to use portably, because the criteria under which result_of will be supported are not encapsulated, and I couldn't even define it in that file usefully (I'd still get an #error when it isn't supported). Shouldn't there be a generalized way to handle this sort of situation? -- Dave Abrahams Boost Consulting www.boost-consulting.com

David Abrahams <dave <at> boost-consulting.com> writes: http://lists.boost.org/boost/2005/05/26444.php
I want this macro for the parameters library.
How about it, Doug? -- Dave Abrahams Boost Consulting http://www.boost-consulting.com

On Jul 13, 2005, at 7:15 AM, David Abrahams wrote:
David Abrahams <dave <at> boost-consulting.com> writes:
http://lists.boost.org/boost/2005/05/26444.php
I want this macro for the parameters library.
How about it, Doug?
Oops, sorry. It's there now. When you #include result_of, it either implements it (if it'll work) or defines BOOST_NO_RESULT_OF to 1 (if result_of won't work). Doug

Doug Gregor <dgregor@cs.indiana.edu> writes:
On Jul 13, 2005, at 7:15 AM, David Abrahams wrote:
David Abrahams <dave <at> boost-consulting.com> writes:
http://lists.boost.org/boost/2005/05/26444.php
I want this macro for the parameters library.
How about it, Doug?
Oops, sorry. It's there now. When you #include result_of, it either implements it (if it'll work) or defines BOOST_NO_RESULT_OF to 1 (if result_of won't work).
Thank you! -- Dave Abrahams Boost Consulting www.boost-consulting.com

Doug Gregor <dgregor@cs.indiana.edu> writes:
On Jul 13, 2005, at 7:15 AM, David Abrahams wrote:
David Abrahams <dave <at> boost-consulting.com> writes:
http://lists.boost.org/boost/2005/05/26444.php
I want this macro for the parameters library.
How about it, Doug?
Oops, sorry. It's there now. When you #include result_of, it either implements it (if it'll work) or defines BOOST_NO_RESULT_OF to 1 (if result_of won't work).
I wrote:
Thank you!
Oh yeah: is it documented? I need to be able to tell the user, "If BOOST_NO_RESULT_OF is defined we do this, otherwise we do that." -- Dave Abrahams Boost Consulting www.boost-consulting.com
participants (2)
-
David Abrahams
-
Doug Gregor