mirror of
https://github.com/boostorg/array.git
synced 2025-07-30 04:37:21 +02:00
Remove obsolete workaround from failed_rangecheck
This commit is contained in:
@ -303,19 +303,10 @@ namespace boost {
|
|||||||
BOOST_CXX14_CONSTEXPR void fill (const T& ) {}
|
BOOST_CXX14_CONSTEXPR void fill (const T& ) {}
|
||||||
|
|
||||||
// check range (may be private because it is static)
|
// check range (may be private because it is static)
|
||||||
static reference failed_rangecheck () {
|
static reference failed_rangecheck ()
|
||||||
std::out_of_range e("attempt to access element of an empty array");
|
{
|
||||||
boost::throw_exception(e);
|
boost::throw_exception( std::out_of_range( "attempt to access element of an empty array" ) );
|
||||||
#if defined(BOOST_NO_EXCEPTIONS) || (!defined(BOOST_MSVC) && !defined(__PATHSCALE__))
|
}
|
||||||
//
|
|
||||||
// We need to return something here to keep
|
|
||||||
// some compilers happy: however we will never
|
|
||||||
// actually get here....
|
|
||||||
//
|
|
||||||
static T placeholder;
|
|
||||||
return placeholder;
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// comparisons
|
// comparisons
|
||||||
|
Reference in New Issue
Block a user