2
0
mirror of https://github.com/boostorg/lambda.git synced 2026-01-30 20:02:15 +00:00

Handle const lambda functors for nullary result_of. Fixes #6914.

[SVN r83020]
This commit is contained in:
Steven Watanabe
2013-02-19 19:52:03 +00:00
parent 657a0b9dd7
commit 4545234f94

View File

@@ -308,6 +308,12 @@ struct result_of<boost::lambda::lambda_functor<T>()>
typedef typename boost::lambda::lambda_functor<T>::nullary_return_type type;
};
template<class T>
struct result_of<const boost::lambda::lambda_functor<T>()>
{
typedef typename boost::lambda::lambda_functor<T>::nullary_return_type type;
};
#endif
template<class T>
@@ -316,6 +322,12 @@ struct tr1_result_of<boost::lambda::lambda_functor<T>()>
typedef typename boost::lambda::lambda_functor<T>::nullary_return_type type;
};
template<class T>
struct tr1_result_of<const boost::lambda::lambda_functor<T>()>
{
typedef typename boost::lambda::lambda_functor<T>::nullary_return_type type;
};
}
// is_placeholder