2
0
mirror of https://github.com/boostorg/lambda.git synced 2026-01-23 17:42:52 +00:00

some changes in the return_type_2 traits

[SVN r13532]
This commit is contained in:
Jaakko Järvi
2002-04-19 19:42:05 +00:00
parent f83f913fd7
commit 52ef1b9bac
2 changed files with 12 additions and 9 deletions

View File

@@ -117,30 +117,33 @@ bool operator->*(B b, A a) {
// let's provide specializations to take care of the return type deduction.
// Note, that you need to provide all four cases for non-const and const
// references :(
// or use the plain_return_type_2 template.
namespace boost {
namespace lambda {
template <>
struct return_type_2<other_action<member_pointer_action>, B&, A&> {
struct return_type_2<other_action<member_pointer_action>, B, A> {
typedef bool type;
};
template<>
struct return_type_2<other_action<member_pointer_action>, const B&, A&> {
struct return_type_2<other_action<member_pointer_action>, const B, A> {
typedef bool type;
};
template<>
struct return_type_2<other_action<member_pointer_action>, B&, const A&> {
struct return_type_2<other_action<member_pointer_action>, B, const A> {
typedef bool type;
};
template<>
struct return_type_2<other_action<member_pointer_action>, const B&, const A&> {
struct return_type_2<other_action<member_pointer_action>, const B, const A> {
typedef bool type;
};
} // lambda
} // boost