summaryrefslogtreecommitdiff
path: root/asl/containers/buffer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'asl/containers/buffer.hpp')
-rw-r--r--asl/containers/buffer.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/asl/containers/buffer.hpp b/asl/containers/buffer.hpp
index f5ba975..f684808 100644
--- a/asl/containers/buffer.hpp
+++ b/asl/containers/buffer.hpp
@@ -403,7 +403,7 @@ public:
return buffer.is_on_heap()
? return_type{ buffer.m_data }
// NOLINTNEXTLINE(*-reinterpret-cast)
- : reinterpret_cast<return_type>(&buffer);
+ : std::launder(reinterpret_cast<return_type>(&buffer));
}
}