Skip to content
Snippets Groups Projects
Commit 7ed6f034 authored by lh1887's avatar lh1887
Browse files

[variant] Only store trivial data types directly

O/w certain types (for instance FieldVectors) could not be stored.
parent 17a6d11b
No related branches found
No related tags found
1 merge request!7Fix variant fallback
...@@ -138,7 +138,7 @@ namespace Impl { ...@@ -138,7 +138,7 @@ namespace Impl {
} }
private: private:
TypeStorage_<Head_, std::is_literal_type<Head_>::value> head_; TypeStorage_<Head_, std::is_trivial<Head_>::value> head_;
variant_union_<Tail_...> tail_; variant_union_<Tail_...> tail_;
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment