mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-01 06:25:34 +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
|
MasterToken::StringRegion
|
||||||
createStringRegion(const std::string& str) {
|
createStringRegion(const std::string& str) {
|
||||||
MasterToken::StringRegion region;
|
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();
|
region.len = str.size();
|
||||||
return (region);
|
return (region);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user