diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-01-05 15:25:45 +0100 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-01-05 15:25:45 +0100 |
commit | 8607772d4f9e21f53c1abfd9379737403b97f430 (patch) | |
tree | fcd5a5030bb1cc0ba4dd4069a0d7174a67791c03 /asl/box.hpp | |
parent | b53fc9038f4579974c9eea28e82b693a7fd66522 (diff) |
Fix a few mistakes in option, and make it trivial when possible
Diffstat (limited to 'asl/box.hpp')
-rw-r--r-- | asl/box.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/asl/box.hpp b/asl/box.hpp index 491338f..d018c03 100644 --- a/asl/box.hpp +++ b/asl/box.hpp @@ -16,7 +16,7 @@ class box ASL_NO_UNIQUE_ADDRESS Allocator m_alloc;
public:
- explicit constexpr box(niche)
+ explicit constexpr box(niche_t)
requires default_constructible<Allocator>
: m_ptr{nullptr}
, m_alloc{}
@@ -78,7 +78,7 @@ public: return m_ptr;
}
- constexpr bool operator==(niche) const
+ constexpr bool operator==(niche_t) const
{
return m_ptr == nullptr;
}
|