WvStreams
wvtr1.cc
1 #include "wvtr1.h"
2 
3 /* If we're not using TR1, we must be using Boost. */
4 #if !defined(HAVE_TR1_FUNCTIONAL) && defined(HAVE_BOOST_THROW_EXCEPTION_HPP)
5 #include <boost/throw_exception.hpp>
6 #include "wvcrash.h"
7 
8 #ifdef BOOST_NO_EXCEPTIONS
9 /* std::tr1::function does this when operator() is called on an empty
10  * object. This is a bit heavy-handed, but it's all I can think of for
11  * now. */
12 void boost::throw_exception(std::exception const &e)
13 {
14  std::abort();
15 }
16 #endif
17 
18 #endif