StringExt: Fix some template mistakes
This commit is contained in:
parent
9ac5aadc9d
commit
97a62a4817
|
|
@ -49,7 +49,7 @@ namespace Nz
|
|||
}
|
||||
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>");
|
||||
}
|
||||
}
|
||||
|
|
@ -72,8 +72,8 @@ namespace Nz
|
|||
}
|
||||
else
|
||||
{
|
||||
static_assert(AlwaysFalse<S>, "Unsupported platform");
|
||||
return std::string("<platform error>");
|
||||
static_assert(AlwaysFalse<std::integral_constant<std::size_t, S>>, "Unsupported platform");
|
||||
return std::wstring(L"<platform error>");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue