diff --git a/include/fc/static_variant.hpp b/include/fc/static_variant.hpp index 1e024bb6b..0fa2a7b36 100644 --- a/include/fc/static_variant.hpp +++ b/include/fc/static_variant.hpp @@ -253,6 +253,9 @@ static const fc::array template class static_variant { +public: + using tag_type = int64_t; + protected: static_assert(impl::type_info::no_reference_types, "Reference types are not permitted in static_variant."); static_assert(impl::type_info::no_duplicates, "static_variant type arguments contain duplicate types."); @@ -260,7 +263,6 @@ class static_variant { template using type_in_typelist = typename std::enable_if::pos != -1, X>::type; // type is in typelist of static_variant. - using tag_type = int64_t; tag_type _tag; impl::dynamic_storage storage;