throw_bad_function_call.cpp 346 B

1234567891011121314151617
  1. // Copyright 2018 Peter Dimov.
  2. // Distributed under the Boost Software License, Version 1.0.
  3. #include <boost/function.hpp>
  4. #include <boost/config.hpp>
  5. #if defined(THROW_BAD_FUNCTION_CALL_DYN_LINK)
  6. # define EXPORT BOOST_SYMBOL_EXPORT
  7. #else
  8. # define EXPORT
  9. #endif
  10. EXPORT void throw_bad_function_call()
  11. {
  12. throw boost::bad_function_call();
  13. }