]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/config/test/boost_no_cxx98_function_base.ipp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / config / test / boost_no_cxx98_function_base.ipp
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
14 namespace boost_no_cxx98_function_base{
15
16 struct A : public std::unary_function<int, int>{};
17 struct B : public std::binary_function<int, int, int>{};
18
19 int 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 }