mirror of
https://github.com/boostorg/functional.git
synced 2025-07-29 12:07:19 +02:00
Define unary_function and binary_function unconditionally
This commit is contained in:
@ -21,7 +21,6 @@ namespace boost
|
|||||||
namespace functional
|
namespace functional
|
||||||
{
|
{
|
||||||
namespace detail {
|
namespace detail {
|
||||||
#if defined(_HAS_AUTO_PTR_ETC) && !_HAS_AUTO_PTR_ETC
|
|
||||||
// std::unary_function and std::binary_function were both removed
|
// std::unary_function and std::binary_function were both removed
|
||||||
// in C++17.
|
// in C++17.
|
||||||
|
|
||||||
@ -39,12 +38,6 @@ namespace boost
|
|||||||
typedef Arg2 second_argument_type;
|
typedef Arg2 second_argument_type;
|
||||||
typedef Result result_type;
|
typedef Result result_type;
|
||||||
};
|
};
|
||||||
#else
|
|
||||||
// Use the standard objects when we have them.
|
|
||||||
|
|
||||||
using std::unary_function;
|
|
||||||
using std::binary_function;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user