1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// Copyright 2019, 2023 Peter Dimov // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt #include <boost/bind/bind.hpp> int f( int x, int y ) { return x + y; } int main() { return boost::bind( f, 1, 2 )() == 3? 0: 1; }