// Copyright 2018 Peter Dimov. // Distributed under the Boost Software License, Version 1.0. #include #include #if defined(RETURN_FUNCTION_DYN_LINK) # define EXPORT BOOST_SYMBOL_EXPORT #else # define EXPORT #endif int f( int x, int y ) { return x + y; } EXPORT boost::function get_fn_1() { return f; } EXPORT boost::function2 get_fn_2() { return f; }