Repository navigation
Use C++23's std::expected instead of a custom implementation for RegExpected.
Now RegExpected<T> is basically a simple std::expected<T, RegResult>:
template <typename T>
using RegExpected = std::expected<T, RegResult>;Moved the code to C++23 mode and Visual Studio 2026.
(The code still compiles with VS 2022 in C++23 "preview" mode.)
NOTE: If for some reason you cannot use C++23, C++20 release v14.1.1 has the same features of this C++23 release, with the only difference that a custom implementation of RegExpected<T> is used instead of relying on C++23's std::expected. (Another option could be using this release, replacing C++23's std::expected with a C++20-compatible implementation of std::expected.)