@@ -121,9 +121,7 @@ growth(
121121 std::size_t capacity)
122122{
123123 if (new_size > max_size ())
124- detail::throw_length_error (
125- " string too large" ,
126- BOOST_CURRENT_LOCATION);
124+ detail::throw_length_error ( " string too large" );
127125 // growth factor 2
128126 if ( capacity >
129127 max_size () - capacity)
@@ -158,9 +156,7 @@ append(
158156 storage_ptr const & sp)
159157{
160158 if (n > max_size () - size ())
161- detail::throw_length_error (
162- " string too large" ,
163- BOOST_CURRENT_LOCATION);
159+ detail::throw_length_error ( " string too large" );
164160 if (n <= capacity () - size ())
165161 {
166162 term (size () + n);
@@ -186,8 +182,7 @@ insert(
186182{
187183 const auto curr_size = size ();
188184 if (pos > curr_size)
189- detail::throw_out_of_range (
190- BOOST_CURRENT_LOCATION);
185+ detail::throw_out_of_range ();
191186 const auto curr_data = data ();
192187 if (n <= capacity () - curr_size)
193188 {
@@ -217,9 +212,7 @@ insert(
217212 else
218213 {
219214 if (n > max_size () - curr_size)
220- detail::throw_length_error (
221- " string too large" ,
222- BOOST_CURRENT_LOCATION);
215+ detail::throw_length_error ( " string too large" );
223216 string_impl tmp (growth (
224217 curr_size + n, capacity ()), sp);
225218 tmp.size (curr_size + n);
@@ -249,8 +242,7 @@ insert_unchecked(
249242{
250243 const auto curr_size = size ();
251244 if (pos > curr_size)
252- detail::throw_out_of_range (
253- BOOST_CURRENT_LOCATION);
245+ detail::throw_out_of_range ();
254246 const auto curr_data = data ();
255247 if (n <= capacity () - size ())
256248 {
@@ -264,9 +256,7 @@ insert_unchecked(
264256 return dest;
265257 }
266258 if (n > max_size () - curr_size)
267- detail::throw_length_error (
268- " string too large" ,
269- BOOST_CURRENT_LOCATION);
259+ detail::throw_length_error ( " string too large" );
270260 string_impl tmp (growth (
271261 curr_size + n, capacity ()), sp);
272262 tmp.size (curr_size + n);
@@ -294,8 +284,7 @@ replace(
294284{
295285 const auto curr_size = size ();
296286 if (pos > curr_size)
297- detail::throw_out_of_range (
298- BOOST_CURRENT_LOCATION);
287+ detail::throw_out_of_range ();
299288 const auto curr_data = data ();
300289 n1 = (std::min)(n1, curr_size - pos);
301290 const auto delta = (std::max)(n1, n2) -
@@ -343,9 +332,7 @@ replace(
343332 else
344333 {
345334 if (delta > max_size () - curr_size)
346- detail::throw_length_error (
347- " string too large" ,
348- BOOST_CURRENT_LOCATION);
335+ detail::throw_length_error ( " string too large" );
349336 // would exceed capacity, reallocate
350337 string_impl tmp (growth (
351338 curr_size + delta, capacity ()), sp);
@@ -379,8 +366,7 @@ replace_unchecked(
379366{
380367 const auto curr_size = size ();
381368 if (pos > curr_size)
382- detail::throw_out_of_range (
383- BOOST_CURRENT_LOCATION);
369+ detail::throw_out_of_range ();
384370 const auto curr_data = data ();
385371 const auto delta = (std::max)(n1, n2) -
386372 (std::min)(n1, n2);
@@ -401,9 +387,7 @@ replace_unchecked(
401387 return replace_pos;
402388 }
403389 if (delta > max_size () - curr_size)
404- detail::throw_length_error (
405- " string too large" ,
406- BOOST_CURRENT_LOCATION);
390+ detail::throw_length_error ( " string too large" );
407391 // would exceed capacity, reallocate
408392 string_impl tmp (growth (
409393 curr_size + delta, capacity ()), sp);
0 commit comments