forked from boostorg/optional
Fix for C++03 tests for .map() using result_of
This commit is contained in:
@ -86,6 +86,7 @@ struct Int
|
|||||||
|
|
||||||
struct convert_t
|
struct convert_t
|
||||||
{
|
{
|
||||||
|
typedef Int result_type;
|
||||||
Int operator()(int i) { return Int(i); }
|
Int operator()(int i) { return Int(i); }
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -96,6 +97,7 @@ int& get_int_ref(Int& i)
|
|||||||
|
|
||||||
struct get_ref
|
struct get_ref
|
||||||
{
|
{
|
||||||
|
typedef int& result_type;
|
||||||
int& operator()(int& i) { return i; }
|
int& operator()(int& i) { return i; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user