diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-09 04:13:39 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-09 04:13:39 +0100 |
commit | 8cba3bea1fe18f5f77ce161635bbf367ed0ea167 (patch) | |
tree | 5a94c102be7cd21c34927a9ae6d78cab108808dd | |
parent | 91c74fbf2756094573e524d89f032ff228207e0e (diff) |
move defaulted ctor to impl file
-rw-r--r-- | src/chunk.cpp | 2 | ||||
-rw-r--r-- | src/chunk.hpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/chunk.cpp b/src/chunk.cpp index b78b8f1a..ea3fd8d7 100644 --- a/src/chunk.cpp +++ b/src/chunk.cpp @@ -19,6 +19,8 @@ bool chunk::empty(bool force) const noexcept return true; } +chunk::chunk() noexcept = default; + tile_ref chunk::operator[](std::size_t idx) noexcept { return { *this, std::uint8_t(idx) }; } tile_proto chunk::operator[](std::size_t idx) const noexcept { return tile_proto(tile_ref { *const_cast<chunk*>(this), std::uint8_t(idx) }); } tile_ref chunk::operator[](local_coords xy) noexcept { return operator[](xy.to_index()); } diff --git a/src/chunk.hpp b/src/chunk.hpp index 14795de0..70a98dbd 100644 --- a/src/chunk.hpp +++ b/src/chunk.hpp @@ -32,7 +32,7 @@ struct chunk final bool empty(bool force = false) const noexcept; - chunk() noexcept = default; + chunk() noexcept; chunk(const chunk&) = delete; chunk& operator=(const chunk&) = delete; chunk(chunk&&) noexcept; |