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:
parent
813c3298ad
commit
56d922999f
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user