From c3cf6df863828798ed8230b0f0966bcf3b2d08dd Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Sun, 27 Oct 2024 21:50:16 -0500 Subject: Excise std::optional. --- include/fud_utf8.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/fud_utf8.hpp') diff --git a/include/fud_utf8.hpp b/include/fud_utf8.hpp index 50e50aa..31c215a 100644 --- a/include/fud_utf8.hpp +++ b/include/fud_utf8.hpp @@ -20,10 +20,10 @@ #include "fud_array.hpp" #include "fud_c_string.hpp" +#include "fud_option.hpp" #include "fud_unique_array.hpp" #include -#include #include namespace fud { @@ -500,12 +500,12 @@ struct FudUtf8 { return std::strong_ordering::greater; } - std::optional getAscii() const + Option getAscii() const { if (m_variant.index() == static_cast(Utf8Type::Ascii)) { return std::get(m_variant); } - return std::nullopt; + return NullOpt; } }; -- cgit v1.2.3