mirror of
https://github.com/boostorg/cmake.git
synced 2026-01-19 16:12:15 +00:00
16 lines
280 B
C++
16 lines
280 B
C++
// 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;
|
|
}
|