aboutsummaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
Diffstat (limited to 'libs')
-rw-r--r--libs/kstd/kstd/bits/shared_ptr.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/kstd/kstd/bits/shared_ptr.hpp b/libs/kstd/kstd/bits/shared_ptr.hpp
index 8d5dc1a8..1171d7fe 100644
--- a/libs/kstd/kstd/bits/shared_ptr.hpp
+++ b/libs/kstd/kstd/bits/shared_ptr.hpp
@@ -330,7 +330,7 @@ namespace kstd
/**
* @brief Construct an empty shared_ptr.
*/
- shared_ptr() noexcept
+ constexpr shared_ptr() noexcept
: m_storage(nullptr)
, m_control_block(nullptr)
{}
@@ -392,7 +392,7 @@ namespace kstd
//! @param other The shared_ptr to share ownership with.
//! @param pointer The pointer this shared_ptr should own.
template<typename Y>
- requires bits::is_shared_pointer_ctor_compatible<Y *, T *>::value
+ requires bits::is_shared_pointer_ctor_compatible<T *, Y *>::value
shared_ptr(shared_ptr<Y> const & other, T * pointer) noexcept
: m_storage{pointer}
, m_control_block{other.m_control_block}