@@ -171,7 +171,7 @@ op_t::
171171reserve (
172172 std::size_t n)
173173{
174- if (n > self_.max_capacity_in_bytes () )
174+ if (n > self_.max_cap_ )
175175 {
176176 // max capacity exceeded
177177 detail::throw_length_error ();
@@ -270,7 +270,7 @@ prefix_op_t(
270270 {
271271 // static storage will always throw which is
272272 // intended since they cannot reallocate.
273- if (self.h_ . max_cap < new_size)
273+ if (self.max_cap_ < new_size)
274274 detail::throw_length_error ();
275275
276276 auto bytes_needed =
@@ -347,14 +347,14 @@ fields_base(
347347 std::size_t storage_size) noexcept
348348 : fields_view_base(&h_)
349349 , h_(k)
350- , static_storage (true )
350+ , static_storage_ (true )
351351{
352352 h_.buf = storage;
353353 h_.cap = align_down (
354354 storage,
355355 storage_size,
356356 alignof (detail::header::entry));
357- h_. max_cap = h_.cap ;
357+ max_cap_ = h_.cap ;
358358}
359359
360360fields_base::
@@ -367,7 +367,7 @@ fields_base(
367367 if (storage_size != 0 )
368368 {
369369 reserve_bytes (storage_size);
370- h_. max_cap = h_.cap ;
370+ max_cap_ = h_.cap ;
371371 }
372372}
373373
@@ -383,7 +383,7 @@ fields_base(
383383 detail::throw_length_error ();
384384
385385 reserve_bytes (storage_size);
386- h_. max_cap = max_storage_size;
386+ max_cap_ = max_storage_size;
387387}
388388
389389// copy s and parse it
@@ -427,15 +427,15 @@ fields_base(
427427 core::string_view s)
428428 : fields_view_base(&h_)
429429 , h_(detail::empty{k})
430- , static_storage (true )
430+ , static_storage_ (true )
431431{
432432 h_.cbuf = storage;
433433 h_.buf = storage;
434434 h_.cap = align_down (
435435 storage,
436436 storage_size,
437437 alignof (detail::header::entry));
438- h_. max_cap = h_.cap ;
438+ max_cap_ = h_.cap ;
439439
440440 auto n = detail::header::count_crlf (s);
441441 if (h_.kind == detail::kind::fields)
@@ -492,14 +492,14 @@ fields_base(
492492 std::size_t storage_size)
493493 : fields_view_base(&h_)
494494 , h_(h.kind)
495- , static_storage (true )
495+ , static_storage_ (true )
496496{
497497 h_.buf = storage;
498498 h_.cap = align_down (
499499 storage,
500500 storage_size,
501501 alignof (detail::header::entry));
502- h_. max_cap = h_.cap ;
502+ max_cap_ = h_.cap ;
503503
504504 if (h.is_default ())
505505 return ;
@@ -522,7 +522,7 @@ fields_base(
522522fields_base::
523523~fields_base ()
524524{
525- if (h_.buf && !static_storage )
525+ if (h_.buf && !static_storage_ )
526526 delete[] h_.buf ;
527527}
528528
@@ -578,7 +578,7 @@ shrink_to_fit() noexcept
578578 h_.cap )
579579 return ;
580580
581- if (static_storage )
581+ if (static_storage_ )
582582 return ;
583583
584584 fields_base tmp (h_);
@@ -941,7 +941,7 @@ copy_impl(
941941 return ;
942942 }
943943
944- if (static_storage )
944+ if (static_storage_ )
945945 {
946946 if (h.is_default ())
947947 {
0 commit comments