Matt Wilson
-
2010-01-20
- status: open --> open-accepted
Just explicit conversion of '0' to char_type missed in assign() method so it's impossible to use basic_simple_string <some_enum_type>. Version: stlsoft-1.9.85
--- simple_string.hpp 2009-11-08 14:27:49.000000000 +0300
+++ simple_string.hpp 2009-11-08 14:27:40.000000000 +0300
@@ -2195,7 +2195,7 @@ inline ss_typename_type_ret_k basic_simp
s > &buffer->contents[len]))
{
traits_type::copy(buffer->contents, s, cch);
- buffer->contents[cch] = 0;
+ buffer->contents[cch] = traits_type::to_char_type(0);
buffer->length = cch;
}
else