mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
parent
2f0c2e5874
commit
aea393c85c
|
@ -8502,7 +8502,7 @@ But heed the warning: [Avoid "naked" `union`s](#Ru-naked)
|
|||
~Immutable_string()
|
||||
{
|
||||
if (size >= buffer_size)
|
||||
delete string_ptr;
|
||||
delete[] string_ptr;
|
||||
}
|
||||
|
||||
const char* get_str() const
|
||||
|
|
Loading…
Reference in New Issue
Block a user