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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user