2
0
mirror of https://github.com/boostorg/lambda.git synced 2026-01-30 07:52:12 +00:00

Handle nullary result_of. Fixes #6914.

[SVN r82935]
This commit is contained in:
Steven Watanabe
2013-02-16 20:26:34 +00:00
parent fab5a8041b
commit 657a0b9dd7
2 changed files with 22 additions and 1 deletions

View File

@@ -15,6 +15,7 @@
#include <boost/config.hpp>
#include <boost/detail/workaround.hpp>
#include <boost/utility/result_of.hpp>
#if BOOST_WORKAROUND(BOOST_MSVC, == 1310)
@@ -297,6 +298,26 @@ public:
} // namespace lambda
} // namespace boost
namespace boost {
#if !defined(BOOST_RESULT_OF_USE_DECLTYPE) || defined(BOOST_NO_DECLTYPE)
template<class T>
struct result_of<boost::lambda::lambda_functor<T>()>
{
typedef typename boost::lambda::lambda_functor<T>::nullary_return_type type;
};
#endif
template<class T>
struct tr1_result_of<boost::lambda::lambda_functor<T>()>
{
typedef typename boost::lambda::lambda_functor<T>::nullary_return_type type;
};
}
// is_placeholder
#include <boost/is_placeholder.hpp>