diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2025-12-03 20:16:36 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2025-12-03 20:16:36 +0100 |
| commit | 448632c3c9c919e8eda44e8a83082f60983057b7 (patch) | |
| tree | fb79962825ecfd0e0960d969d16e4a586c5b0573 | |
| parent | d74936964ecd5e5c961b90feb9323ca999ce9026 (diff) | |
| download | teachos-448632c3c9c919e8eda44e8a83082f60983057b7.tar.xz teachos-448632c3c9c919e8eda44e8a83082f60983057b7.zip | |
x86_64/memory: add missing noexcept specifiers
| -rw-r--r-- | arch/x86_64/src/memory/scoped_mapping.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86_64/src/memory/scoped_mapping.cpp b/arch/x86_64/src/memory/scoped_mapping.cpp index 5446b2a..6e2328d 100644 --- a/arch/x86_64/src/memory/scoped_mapping.cpp +++ b/arch/x86_64/src/memory/scoped_mapping.cpp @@ -14,7 +14,7 @@ namespace teachos::memory::x86_64 { - scoped_mapping::scoped_mapping(scoped_mapping && other) + scoped_mapping::scoped_mapping(scoped_mapping && other) noexcept : m_page{std::exchange(other.m_page, page{})} , m_allocator{std::exchange(other.m_allocator, nullptr)} , m_mapped{std::exchange(other.m_mapped, false)} @@ -40,7 +40,7 @@ namespace teachos::memory::x86_64 } } - auto scoped_mapping::operator=(scoped_mapping && other) -> scoped_mapping & + auto scoped_mapping::operator=(scoped_mapping && other) noexcept -> scoped_mapping & { if (&other == this) { |
