From 8607772d4f9e21f53c1abfd9379737403b97f430 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Sun, 5 Jan 2025 15:25:45 +0100 Subject: Fix a few mistakes in option, and make it trivial when possible --- asl/box.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'asl/box.hpp') 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 : 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; } -- cgit