Fix compilation with old g++ 3.3.5 and debian-sarge.
[wvstreams.git] / utils / wvtr1.cc
blobcd066fff368856ae4049a0d169302f2c2e02a20f
1 #include "wvtr1.h"
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"
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)
14 std::abort();
16 #endif
18 #endif