mirror of
https://github.com/ETLCPP/etl.git
synced 2026-04-30 19:09:10 +08:00
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:
parent
b96c2a9ecd
commit
43e97b7f3c
@ -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
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user