1 // (C) Copyright John Maddock 2017.
2 // Use, modification and distribution are subject to the
3 // Boost Software License, Version 1.0. (See accompanying file
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 // See http://www.boost.org/libs/config for most recent version.
8 // MACRO: BOOST_NO_CXX98_FUNCTION_BASE
9 // TITLE: std::unary_function and std::binary_function
10 // DESCRIPTION: The std lib has unary_function and binary_function.
14 namespace boost_no_cxx98_function_base{
16 struct A : public std::unary_function<int, int>{};
17 struct B : public std::binary_function<int, int, int>{};
25 return static_cast<B::result_type>(0);