Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

common_types: Make NonCopyable constructor constexpr

Lioncash353df6fd7262
diff --git a/src/common/common_types.h b/src/common/common_types.h
index 1384b7f6f5..9f51dff18c 100644
--- a/src/common/common_types.h
+++ b/src/common/common_types.h
@@ -53,7 +53,7 @@ typedef u32 PAddr; ///< Represents a pointer in the ARM11 physical address space
// An inheritable class to disallow the copy constructor and operator= functions
class NonCopyable {
protected:
- NonCopyable() = default;
+ constexpr NonCopyable() = default;
~NonCopyable() = default;
NonCopyable(const NonCopyable&) = delete;