We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The expected class uses the variant constructor with 2 Arguments index and value
expected
index
value
ETL_CONSTEXPR14 expected() ETL_NOEXCEPT : storage(etl::in_place_index_t<Value_Type>(), value_type()) { }
This constructor is not implemented for legacy_variant. In my case a simple implementation like
template <size_t Index, typename T> explicit variant(etl::in_place_index_t<Index>, T const& value) : type_id(Index) { ETL_STATIC_ASSERT(Type_Id_Lookup<T>::type_id == Index, "Missmatched type"); ::new (static_cast<T*>(data)) T(value); }
did the job.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The
expected
class uses the variant constructor with 2 Argumentsindex
andvalue
This constructor is not implemented for legacy_variant. In my case a simple implementation like
did the job.
The text was updated successfully, but these errors were encountered: