Przeglądaj źródła

common_types: Make NonCopyable constructor constexpr

Lioncash 10 lat temu
rodzic
commit
38376b833e
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/common/common_types.h

+ 1 - 1
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;