Remove unnecessary reference to deprecated std::unary/binary_function in test.

This test will only fail for obsolete versions of Metrowerks compilers which are probably no longer supported anyway.
This commit is contained in:
jzmaddock
2017-04-16 08:37:17 +01:00
parent 272ab4c69f
commit d88c41e681

View File

@@ -16,12 +16,10 @@
// of these in overloaded function templates. // of these in overloaded function templates.
// See boost/functional.hpp for example. // See boost/functional.hpp for example.
#include <functional>
namespace boost_no_pointer_to_member_const{ namespace boost_no_pointer_to_member_const{
template <class S, class T> template <class S, class T>
class const_mem_fun_t : public std::unary_function<const T*, S> class const_mem_fun_t
{ {
public: public:
explicit const_mem_fun_t(S (T::*p)() const) explicit const_mem_fun_t(S (T::*p)() const)
@@ -37,7 +35,7 @@ private:
}; };
template <class S, class T, class A> template <class S, class T, class A>
class const_mem_fun1_t : public std::binary_function<const T*, A, S> class const_mem_fun1_t
{ {
public: public:
explicit const_mem_fun1_t(S (T::*p)(A) const) explicit const_mem_fun1_t(S (T::*p)(A) const)