1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 18:53:28 +01:00

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

View File

@ -799,13 +799,13 @@ struct const_str_t<umax>
{ {
const usz size; const usz size;
const union union
{ {
const char8_t* chars; const char8_t* chars;
const char* chars2; const char* chars2;
}; };
const_str_t() constexpr const_str_t()
: size(0) : size(0)
, chars(nullptr) , chars(nullptr)
{ {
@ -825,7 +825,7 @@ struct const_str_t<umax>
{ {
} }
operator const char*() const constexpr operator const char*() const
{ {
return std::launder(chars2); return std::launder(chars2);
} }