diff --git a/core/sstring.hh b/core/sstring.hh index ffa687d9b0..1826840a09 100644 --- a/core/sstring.hh +++ b/core/sstring.hh @@ -31,11 +31,17 @@ #include #include #include +#include #include #include "core/temporary_buffer.hh" template class basic_sstring { + static_assert( + (std::is_same::value + || std::is_same::value + || std::is_same::value), + "basic_sstring only supports single byte char types"); union contents { struct external_type { char_type* str;