2
0
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:
JINMEI Tatuya
2012-12-05 10:43:06 -08:00
parent 05fc975a3d
commit ea88e8907a

View File

@@ -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);
}