aboutsummaryrefslogtreecommitdiff
path: root/libs/kstd
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-09-03 14:07:25 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-09-03 14:36:28 +0200
commite9c8e851eedeabe82878ef9d41042731c4d17e6d (patch)
treea71f138b716e7969bbb924130d7c5e334d9c3104 /libs/kstd
parentdf6db4a91c6c0950f1d5985dd5bb9a035609cac4 (diff)
downloadkernel-e9c8e851eedeabe82878ef9d41042731c4d17e6d.tar.xz
kernel-e9c8e851eedeabe82878ef9d41042731c4d17e6d.zip
chore: add missing explicit specifiers
Diffstat (limited to 'libs/kstd')
-rw-r--r--libs/kstd/kstd/bits/observer_ptr.hpp2
-rw-r--r--libs/kstd/kstd/bits/shared_ptr.hpp4
-rw-r--r--libs/kstd/kstd/system_error.hpp4
3 files changed, 10 insertions, 0 deletions
diff --git a/libs/kstd/kstd/bits/observer_ptr.hpp b/libs/kstd/kstd/bits/observer_ptr.hpp
index 260d9d33..d53ab5a0 100644
--- a/libs/kstd/kstd/bits/observer_ptr.hpp
+++ b/libs/kstd/kstd/bits/observer_ptr.hpp
@@ -24,6 +24,8 @@ namespace kstd
constexpr observer_ptr() noexcept = default;
//! Construct an empty observer pointer from a null pointer.
+ //!
+ //! @note this constructor is deliberately not explicit, as required by the standard.
constexpr observer_ptr(std::nullptr_t) noexcept {}
//! Construct an observer pointer from a raw pointer.
diff --git a/libs/kstd/kstd/bits/shared_ptr.hpp b/libs/kstd/kstd/bits/shared_ptr.hpp
index 1c1ae08c..378030dc 100644
--- a/libs/kstd/kstd/bits/shared_ptr.hpp
+++ b/libs/kstd/kstd/bits/shared_ptr.hpp
@@ -227,6 +227,8 @@ namespace kstd
}
//! Construct a weak pointer which shares ownership of the object managed by other.
+ //!
+ //! @note this constructor is deliberately not explicit, as required by the standard.
template<typename Y>
requires bits::is_shared_pointer_ctor_compatible<Y *, T *>::value
constexpr weak_ptr(weak_ptr<Y> const & other) noexcept
@@ -452,6 +454,8 @@ namespace kstd
{}
//! @brief Construct an empty shared pointer.
+ //!
+ //! @note this constructor is deliberately not explicit, as required by the standard.
constexpr shared_ptr(std::nullptr_t) noexcept
: m_pointer(nullptr)
, m_control_block(nullptr)
diff --git a/libs/kstd/kstd/system_error.hpp b/libs/kstd/kstd/system_error.hpp
index d6e78ffe..3b8e628a 100644
--- a/libs/kstd/kstd/system_error.hpp
+++ b/libs/kstd/kstd/system_error.hpp
@@ -152,6 +152,8 @@ namespace kstd
//! Construct an error condition from an error condition enumeration value.
//!
+ //! @note this constructor is deliberately not explicit, as required by the standard.
+ //!
//! @tparam Enum The error condition enumeration type.
//! @param value The error condition enumeration value.
template<error_condition_enum Enum>
@@ -237,6 +239,8 @@ namespace kstd
//! Construct an error code from an error code enumeration value.
//!
+ //! @note this constructor is deliberately not explicit, as required by the standard.
+ //!
//! @tparam Enum The error code enumeration type.
//! @param value The error code enumeration value.
template<error_code_enum Enum>