]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/bind/test/quick.cpp
2 // quick.cpp - a quick test for boost/bind.hpp
4 // Copyright 2017 Peter Dimov
6 // Distributed under the Boost Software License, Version 1.0.
8 // See accompanying file LICENSE_1_0.txt or copy at
9 // http://www.boost.org/LICENSE_1_0.txt
12 #include <boost/bind.hpp>
13 #include <boost/core/lightweight_test.hpp>
15 int f( int a
, int b
, int c
)
17 return a
+ 10 * b
+ 100 * c
;
24 BOOST_TEST_EQ( boost::bind( f
, _1
, 2, 3 )( i
), 321 );
26 return boost::report_errors();