Add throw/catch test for bad_function_call

This commit is contained in:
Peter Dimov authored and James E. King III committed 2018-10-26 07:41:18 -04:00
1 parent 755d3c2001
commit 5b2acbc175
3 files changed
+36

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
// Copyright 2018 Peter Dimov.
// Distributed under the Boost Software License, Version 1.0.
#include <boost/function.hpp>
#include <boost/config.hpp>
#if defined(THROW_BAD_FUNCTION_CALL_DYN_LINK)
# define EXPORT BOOST_SYMBOL_EXPORT
#else
# define EXPORT
#endif
EXPORT void throw_bad_function_call()
{
throw boost::bad_function_call();
}