mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-06-04 05:45:03 -06:00
Silence unused parameter warning
This commit is contained in:
parent
4bc431ec31
commit
5a41d75eb8
@ -21,11 +21,11 @@ namespace stx
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
static void call_ctor(void*& ptr) noexcept
|
static void call_ctor(void*& ptr) noexcept
|
||||||
{
|
{
|
||||||
// Call default constructor only if available
|
// Don't overwrite if already exists
|
||||||
if constexpr (std::is_default_constructible_v<T>)
|
if (!ptr)
|
||||||
{
|
{
|
||||||
// Don't overwrite if already exists
|
// Call default constructor only if available
|
||||||
if (!ptr)
|
if constexpr (std::is_default_constructible_v<T>)
|
||||||
{
|
{
|
||||||
ptr = new T();
|
ptr = new T();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user