mirror of
https://github.com/boostorg/exception.git
synced 2025-07-26 02:27:15 +02:00
Replacing the use of <iomanip> with <boost/detail/iomanip.hpp> across Boost.
On Linux, GNU's libstdc++, which is the default stdlib for icc and clang, cannot parse the <iomanip> header in version 4.5+ (which thankfully neither compiler advises the use of yet), as it's original C++98-friendly implementation has been replaced with a gnu++0x implementation. <boost/detail/iomanip.hpp> is a portable implementation of <iomanip>, providing boost::detail::setfill, boost::detail::setbase, boost::detail::setw, boost::detail::setprecision, boost::detail::setiosflags and boost::detail::resetiosflags. [SVN r68140]
This commit is contained in:
@ -27,6 +27,10 @@ may_throw_on_copy
|
||||
if( throw_ )
|
||||
throw T();
|
||||
}
|
||||
|
||||
#if defined(__PATHSCALE__)
|
||||
~may_throw_on_copy() throw() {}
|
||||
#endif
|
||||
|
||||
bool throw_;
|
||||
};
|
||||
@ -59,6 +63,9 @@ struct
|
||||
derives_std_exception:
|
||||
std::exception
|
||||
{
|
||||
#if defined(__PATHSCALE__)
|
||||
~derives_std_exception() throw() {}
|
||||
#endif
|
||||
};
|
||||
|
||||
struct
|
||||
@ -77,12 +84,19 @@ derives_std_boost_exception:
|
||||
{
|
||||
return wh_;
|
||||
}
|
||||
|
||||
#if defined(__PATHSCALE__)
|
||||
~derives_std_boost_exception() throw() {}
|
||||
#endif
|
||||
};
|
||||
|
||||
struct
|
||||
derives_boost_exception:
|
||||
boost::exception
|
||||
{
|
||||
#if defined(__PATHSCALE__)
|
||||
~derives_boost_exception() throw() {}
|
||||
#endif
|
||||
};
|
||||
|
||||
template <class T>
|
||||
|
Reference in New Issue
Block a user