mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 09:48:37 +12:00
Silence unused parameter warning
This commit is contained in:
parent
4bc431ec31
commit
5a41d75eb8
1 changed files with 4 additions and 4 deletions
|
@ -20,12 +20,12 @@ namespace stx
|
|||
|
||||
template <typename T>
|
||||
static void call_ctor(void*& ptr) noexcept
|
||||
{
|
||||
// Call default constructor only if available
|
||||
if constexpr (std::is_default_constructible_v<T>)
|
||||
{
|
||||
// Don't overwrite if already exists
|
||||
if (!ptr)
|
||||
{
|
||||
// Call default constructor only if available
|
||||
if constexpr (std::is_default_constructible_v<T>)
|
||||
{
|
||||
ptr = new T();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue