Skip to content

Commit

Permalink
Merge branch 'development' of https://github.com/ETLCPP/etl into deve…
Browse files Browse the repository at this point in the history
…lopment
  • Loading branch information
John Wellbelove committed Sep 24, 2023
2 parents 754ac74 + e1b2a87 commit d507106
Showing 1 changed file with 2 additions and 23 deletions.
25 changes: 2 additions & 23 deletions include/etl/optional.h
Original file line number Diff line number Diff line change
Expand Up @@ -1096,38 +1096,17 @@ namespace etl
dummy_t dummy;
T value;

constexpr storage_type()
ETL_CONSTEXPR storage_type()
: dummy()
{
}

constexpr storage_type(const T& v)
ETL_CONSTEXPR storage_type(const T& v)
: value(v)
{
}
};


//struct storage_type
//{
// storage_type()
// {
// }

// union union_type
// {
// union_type()
// : dummy(0)
// {
// }

// char dummy;
// T value;
// };

// union_type u;
//};

storage_type storage;
};

Expand Down

0 comments on commit d507106

Please sign in to comment.