Skip to content

Commit

Permalink
remove zero-argument 'reserve' from bsl::string (#5036)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marshall Clow authored and GitHub Enterprise committed Nov 6, 2024
1 parent 23c6a91 commit fc82e28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion groups/bsl/bslstl/bslstl_string.h
Original file line number Diff line number Diff line change
Expand Up @@ -1901,7 +1901,7 @@ class basic_string
/// Note that the capacity of a string is the maximum length it can
/// accommodate without reallocation. The actual storage allocated may
/// be higher.
void reserve(size_type newCapacity = 0);
void reserve(size_type newCapacity);

/// Request the removal of unused capacity by causing reallocation.
/// Note that this method has no effect if the capacity is equal to the
Expand Down

0 comments on commit fc82e28

Please sign in to comment.