mirror of
https://github.com/kennethreitz/static_string.git
synced 2026-06-05 14:50:20 +00:00
Wrong exception thrown for capacity
This commit is contained in:
@@ -277,7 +277,7 @@ basic_static_string<N, CharT, Traits>::
|
||||
reserve(std::size_t n)
|
||||
{
|
||||
BOOST_STATIC_STRING_THROW_IF(
|
||||
n > max_size(), std::out_of_range{"n > max_size()"});
|
||||
n > max_size(), std::length_error{"n > max_size()"});
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user