WvStreams
wvtr1.cc
00001 #include "wvtr1.h"
00002 
00003 /* If we're not using TR1, we must be using Boost. */
00004 #if !defined(HAVE_TR1_FUNCTIONAL) && defined(HAVE_BOOST_THROW_EXCEPTION_HPP)
00005 #include <boost/throw_exception.hpp>
00006 #include "wvcrash.h"
00007 
00008 #ifdef BOOST_NO_EXCEPTIONS
00009 /* std::tr1::function does this when operator() is called on an empty
00010  * object. This is a bit heavy-handed, but it's all I can think of for
00011  * now.  */
00012 void boost::throw_exception(std::exception const &e)
00013 {
00014     std::abort();
00015 }
00016 #endif
00017 
00018 #endif