summaryrefslogtreecommitdiff
path: root/include/fud_utf8.hpp
diff options
context:
space:
mode:
authorDominick Allen <djallen@librehumanitas.org>2024-10-27 21:50:16 -0500
committerDominick Allen <djallen@librehumanitas.org>2024-10-27 21:50:16 -0500
commitc3cf6df863828798ed8230b0f0966bcf3b2d08dd (patch)
treec03f94128e4892d503532f7fb886dcd86fafdf72 /include/fud_utf8.hpp
parent7174a2741a6f7aa93c9d077dee384f8aa76d7a02 (diff)
Excise std::optional.
Diffstat (limited to 'include/fud_utf8.hpp')
-rw-r--r--include/fud_utf8.hpp6
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;
}
};