Merge commit 'ec49463217cb6822254fd230426135c0b52da547'

This commit is contained in:
2025-01-21 02:25:27 -06:00
28 changed files with 304 additions and 204 deletions

View File

@ -64,7 +64,7 @@ class AnyPtrT {
}
}
constexpr AnyPtrT(AnyPtrT const&other) noexcept {
constexpr AnyPtrT(AnyPtrT const&other) noexcept requires(!unique) {
if (other) {
m_wrapPtr = other.m_wrapPtr->copyTo(m_wrapData);
}
@ -104,11 +104,9 @@ class AnyPtrT {
return *this;
}
constexpr AnyPtrT &operator=(AnyPtrT const&ptr) noexcept {
constexpr AnyPtrT &operator=(AnyPtrT const&ptr) noexcept requires(!unique) {
if (this != &ptr) {
if constexpr(unique) {
free();
} else if (std::is_constant_evaluated()) {
if (std::is_constant_evaluated()) {
ox::safeDelete(m_wrapPtr);
}
if (ptr) {