prevent usage on potential broken platforms/toolchains

master
Daniel Kolesa 2018-01-05 03:05:17 +01:00
parent d74736d8f4
commit 44854072f7
1 changed files with 7 additions and 0 deletions

View File

@ -66,6 +66,13 @@
namespace ostd {
static_assert(
(sizeof(wchar_t) == sizeof(char)) ||
(sizeof(wchar_t) == sizeof(char16_t)) ||
(sizeof(wchar_t) == sizeof(char32_t)),
"wchar_t must correspond to either char, char16_t or char32_t"
);
/** @addtogroup Strings
* @{
*/