Skip to content

Commit dec79a8

Browse files
committed
Work around GCC bug #113200
This simple fix avoids calling Traits::move(), which is where the bug resides.
1 parent ad1cfdf commit dec79a8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/boost/static_string/static_string.hpp

Lines changed: 1 addition & 1 deletion
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.

0 commit comments

Comments
 (0)