From 865c707756eab7cf2b0aa656da8f58424d62efaf Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 13 Jul 2005 12:35:37 +0000 Subject: [PATCH] BOOST_NO_RESULT_OF support [SVN r30040] --- include/boost/utility/result_of.hpp | 2 +- utility.htm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/utility/result_of.hpp b/include/boost/utility/result_of.hpp index f58c3b3..851d39e 100644 --- a/include/boost/utility/result_of.hpp +++ b/include/boost/utility/result_of.hpp @@ -59,7 +59,7 @@ struct result_of : get_result_of::value)> {}; } #else -# error Your compiler cannot support class template result_of +# define BOOST_NO_RESULT_OF 1 #endif #endif // BOOST_RESULT_OF_HPP diff --git a/utility.htm b/utility.htm index bb320b3..1a1102e 100644 --- a/utility.htm +++ b/utility.htm @@ -175,7 +175,7 @@ void f() { BOOST_RESULT_OF_NUM_ARGS to the maximum value for N.

-

This implementation of result_of requires class template partial specialization, the ability to parse function types properly, and support for SFINAE. Contributed by Doug Gregor.

+

This implementation of result_of requires class template partial specialization, the ability to parse function types properly, and support for SFINAE. If result_of is not supported by your compiler, including the header boost/utility/result_of.hpp will define the macro BOOST_NO_RESULT_OF. Contributed by Doug Gregor.

Class templates for the Base-from-Member Idiom

See separate documentation.