Explorar el Código

common_types: Make NonCopyable constructor constexpr

Lioncash hace 10 años
padre
commit
38376b833e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;