added #error in headers incompatible with BOOST_NO_EXCEPTIONS

[SVN r50887]
This commit is contained in:
Emil Dotchevski
2009-01-30 00:06:01 +00:00
parent aef7275c0f
commit f6f09c16cd
2 changed files with 9 additions and 0 deletions

View File

@ -6,6 +6,7 @@
#ifndef UUID_0552D49838DD11DD90146B8956D89593
#define UUID_0552D49838DD11DD90146B8956D89593
#include <boost/config.hpp>
#include <boost/exception/get_error_info.hpp>
#include <exception>
#include <sstream>
@ -22,13 +23,17 @@ boost
get_diagnostic_information( exception const & x )
{
if( error_info_container * c=x.data_.get() )
#ifndef BOOST_NO_EXCEPTIONS
try
{
#endif
return c->diagnostic_information();
#ifndef BOOST_NO_EXCEPTIONS
}
catch(...)
{
}
#endif
return 0;
}
}

View File

@ -6,6 +6,10 @@
#ifndef UUID_FA5836A2CADA11DC8CD47C8555D89593
#define UUID_FA5836A2CADA11DC8CD47C8555D89593
#include <boost/config.hpp>
#ifdef BOOST_NO_EXCEPTIONS
#error This header requires exception handling to be enabled.
#endif
#include <boost/exception/exception.hpp>
#include <boost/exception/detail/type_info.hpp>
#include <boost/shared_ptr.hpp>