diff options
| author | 2022-02-02 13:18:58 -0500 | |
|---|---|---|
| committer | 2022-02-02 13:19:01 -0500 | |
| commit | ade44ac2ea66777e412644a273a43cbada55e6d6 (patch) | |
| tree | 9a21ee1549c635a577ef751233f5d5b35decd87b | |
| parent | general: Replace NonCopyable struct with equivalents (diff) | |
| download | yuzu-ade44ac2ea66777e412644a273a43cbada55e6d6.tar.gz yuzu-ade44ac2ea66777e412644a273a43cbada55e6d6.tar.xz yuzu-ade44ac2ea66777e412644a273a43cbada55e6d6.zip | |
common_types: Remove NonCopyable struct
Now that we're moved over to the YUZU_ defines, we can get rid of this
struct.
| -rw-r--r-- | src/common/common_types.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/common/common_types.h b/src/common/common_types.h index 4cec89fbd..99bffc460 100644 --- a/src/common/common_types.h +++ b/src/common/common_types.h | |||
| @@ -46,13 +46,3 @@ using GPUVAddr = u64; ///< Represents a pointer in the GPU virtual address space | |||
| 46 | 46 | ||
| 47 | using u128 = std::array<std::uint64_t, 2>; | 47 | using u128 = std::array<std::uint64_t, 2>; |
| 48 | static_assert(sizeof(u128) == 16, "u128 must be 128 bits wide"); | 48 | static_assert(sizeof(u128) == 16, "u128 must be 128 bits wide"); |
| 49 | |||
| 50 | // An inheritable class to disallow the copy constructor and operator= functions | ||
| 51 | class NonCopyable { | ||
| 52 | protected: | ||
| 53 | constexpr NonCopyable() = default; | ||
| 54 | ~NonCopyable() = default; | ||
| 55 | |||
| 56 | NonCopyable(const NonCopyable&) = delete; | ||
| 57 | NonCopyable& operator=(const NonCopyable&) = delete; | ||
| 58 | }; | ||