summaryrefslogtreecommitdiff
path: root/asl/types/box.hpp
diff options
context:
space:
mode:
authorSteven Le Rouzic <steven.lerouzic@gmail.com>2025-03-12 00:08:18 +0100
committerSteven Le Rouzic <steven.lerouzic@gmail.com>2025-03-12 00:08:18 +0100
commitc8b73031d8a9f7770410c9d0e6da5b230e501e85 (patch)
treed458e28d72da3d343446fc8a6a6d92b3776c560a /asl/types/box.hpp
parentaf4e29f8c071b089fb46b5d8b964dd2b1fb3f57a (diff)
Remove convertible_from
Diffstat (limited to 'asl/types/box.hpp')
-rw-r--r--asl/types/box.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/asl/types/box.hpp b/asl/types/box.hpp
index bb4e620..82704d7 100644
--- a/asl/types/box.hpp
+++ b/asl/types/box.hpp
@@ -40,7 +40,7 @@ public:
{}
template<is_object U>
- requires convertible_from<T*, U*>
+ requires convertible_to<U*, T*>
constexpr box(box<U, Allocator>&& other) // NOLINT(*explicit*,*-not-moved)
: m_ptr{exchange(other.m_ptr, nullptr)}
, m_alloc{std::move(other.m_alloc)}