• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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)
5
6//  See http://www.boost.org/libs/config for most recent version.
7
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.
11
12#include <functional>
13
14namespace boost_no_cxx98_function_base{
15
16struct A : public std::unary_function<int, int>{};
17struct B : public std::binary_function<int, int, int>{};
18
19int test()
20{
21   A a;
22   B b;
23   (void)a;
24   (void)b;
25   return static_cast<B::result_type>(0);
26}
27
28}
29