StringExt: Fix some template mistakes

This commit is contained in:
Lynix 2020-02-23 02:35:09 +01:00
parent 9ac5aadc9d
commit 97a62a4817
1 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ namespace Nz
} }
else else
{ {
static_assert(AlwaysFalse<S>, "Unsupported platform"); static_assert(AlwaysFalse<std::integral_constant<std::size_t, S>>::value, "Unsupported platform");
return std::string("<platform error>"); return std::string("<platform error>");
} }
} }
@ -72,8 +72,8 @@ namespace Nz
} }
else else
{ {
static_assert(AlwaysFalse<S>, "Unsupported platform"); static_assert(AlwaysFalse<std::integral_constant<std::size_t, S>>, "Unsupported platform");
return std::string("<platform error>"); return std::wstring(L"<platform error>");
} }
} }
}; };