diff options
Diffstat (limited to 'include/fud_utf8.hpp')
-rw-r--r-- | include/fud_utf8.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
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 <cstdint> -#include <optional> #include <type_traits> namespace fud { @@ -500,12 +500,12 @@ struct FudUtf8 { return std::strong_ordering::greater; } - std::optional<Ascii> getAscii() const + Option<Ascii> getAscii() const { if (m_variant.index() == static_cast<size_t>(Utf8Type::Ascii)) { return std::get<Ascii>(m_variant); } - return std::nullopt; + return NullOpt; } }; |