Expected actually doesn't require a monostate. (#1413)

* Print test names at test time (#1343)

* Fix operator| conflict with std::ranges (#1395)

* Expected actually doesn't require a monostate.

* Better naming, since uninitialised isn't an option for expected.

---------

Co-authored-by: Roland Reichwein <Roland.Reichwein@bmw.de>
Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
This commit is contained in:
Joris Putcuyps 2026-04-28 09:30:23 +02:00 committed by GitHub
parent b96c2a9ecd
commit 43e97b7f3c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -827,13 +827,12 @@ namespace etl
enum
{
Uninitialised,
Value_Type,
Error_Type
};
typedef etl::variant<etl::monostate, value_type, error_type> storage_type;
storage_type storage;
typedef etl::variant<value_type, error_type> storage_type;
storage_type storage;
#if ETL_USING_CPP11
template < typename F, typename TExp, typename TRet, typename TValueRef, typename = typename etl::enable_if<!etl::is_void<TRet>::value>::type>
@ -1189,7 +1188,7 @@ namespace etl
enum
{
Uninitialised,
Void_Type,
Error_Type
};