Fixed debug build compilation errors

const_str_t constructor without arguments shoud be constexpr for usage as default initializer in constexpr functions
This commit is contained in:
DH
2021-11-28 09:21:41 +02:00
committed by Nekotekina
parent 813c3298ad
commit 56d922999f
+3 -3
View File
@@ -799,13 +799,13 @@ struct const_str_t<umax>
{
const usz size;
const union
union
{
const char8_t* chars;
const char* chars2;
};
const_str_t()
constexpr const_str_t()
: size(0)
, chars(nullptr)
{
@@ -825,7 +825,7 @@ struct const_str_t<umax>
{
}
operator const char*() const
constexpr operator const char*() const
{
return std::launder(chars2);
}