Skip to content

Commit 119eab1

Browse files
committed
Work around GCC (libstdc++) bug #113200
See the previous commit. This simple fix avoids calling Traits::move(), which is where the bug resides. This closes issue #55.
1 parent 9b1c1ee commit 119eab1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/boost/static_string/static_string.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,7 +1202,7 @@ class basic_static_string
12021202
BOOST_STATIC_STRING_CPP14_CONSTEXPR
12031203
basic_static_string(const_pointer s)
12041204
{
1205-
assign(s);
1205+
assign(s, s + traits_type::length(s));
12061206
}
12071207

12081208
/** Constructor.
@@ -1373,7 +1373,7 @@ class basic_static_string
13731373
basic_static_string&
13741374
operator=(const_pointer s)
13751375
{
1376-
return assign(s);
1376+
return assign(s, s + traits_type::length(s));
13771377
}
13781378

13791379
/** Assign to the string.

0 commit comments

Comments
 (0)