mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-30 21:45:37 +00:00
[2442] updated comment for string::operator[] when it's empty
this is actually ensured by the C++ standard lib spec.
This commit is contained in:
@@ -52,7 +52,7 @@ protected:
|
||||
MasterToken::StringRegion
|
||||
createStringRegion(const std::string& str) {
|
||||
MasterToken::StringRegion region;
|
||||
region.beg = &str[0]; // note this works even if str is empty
|
||||
region.beg = &str[0]; // note std ensures this works even if str is empty
|
||||
region.len = str.size();
|
||||
return (region);
|
||||
}
|
||||
|
Reference in New Issue
Block a user