mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 17:58:37 +12: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
1 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue