aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2025-12-03 20:16:36 +0100
committerFelix Morgner <felix.morgner@ost.ch>2025-12-03 20:16:36 +0100
commit448632c3c9c919e8eda44e8a83082f60983057b7 (patch)
treefb79962825ecfd0e0960d969d16e4a586c5b0573
parentd74936964ecd5e5c961b90feb9323ca999ce9026 (diff)
downloadteachos-448632c3c9c919e8eda44e8a83082f60983057b7.tar.xz
teachos-448632c3c9c919e8eda44e8a83082f60983057b7.zip
x86_64/memory: add missing noexcept specifiers
-rw-r--r--arch/x86_64/src/memory/scoped_mapping.cpp4
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)
{