array (array<>::at(size_type) const): Fix version for undefined __EXCEPTIONS.
2012-03-22 Paolo Carlini <paolo.carlini@oracle.com> * include/std/array (array<>::at(size_type) const): Fix version for undefined __EXCEPTIONS. From-SVN: r185689
This commit is contained in:
parent
0560508e34
commit
4b74f2b44d
@ -1,3 +1,8 @@
|
||||
2012-03-22 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
* include/std/array (array<>::at(size_type) const): Fix version
|
||||
for undefined __EXCEPTIONS.
|
||||
|
||||
2013-03-21 Andreas Tobler <andreast@fgznet.ch>
|
||||
|
||||
* testsuite/23_containers/vector/bool/modifiers/insert/31370.cc:
|
||||
|
@ -174,8 +174,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
||||
const_reference
|
||||
at(size_type __n) const
|
||||
{
|
||||
return __n < _Nm ?
|
||||
_M_instance[__n] : __throw_out_of_range(__N("array::at"));
|
||||
if (__n >= _Nm)
|
||||
std::__throw_out_of_range(__N("array::at"));
|
||||
return _M_instance[__n];
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user