We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b1c1ee commit 119eab1Copy full SHA for 119eab1
1 file changed
include/boost/static_string/static_string.hpp
@@ -1202,7 +1202,7 @@ class basic_static_string
1202
BOOST_STATIC_STRING_CPP14_CONSTEXPR
1203
basic_static_string(const_pointer s)
1204
{
1205
- assign(s);
+ assign(s, s + traits_type::length(s));
1206
}
1207
1208
/** Constructor.
@@ -1373,7 +1373,7 @@ class basic_static_string
1373
basic_static_string&
1374
operator=(const_pointer s)
1375
1376
- return assign(s);
+ return assign(s, s + traits_type::length(s));
1377
1378
1379
/** Assign to the string.
0 commit comments