Merge pull request #112 from nathanhourt/static_variant_fix

Make static_variant::tag_type public
This commit is contained in:
Nathan Hourt 2019-03-19 16:38:21 -05:00 committed by GitHub
commit a0ca5ab29d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -253,6 +253,9 @@ static const fc::array<typename Visitor::result_type(*)(Visitor&,Data),L>
template<typename... Types>
class static_variant {
public:
using tag_type = int64_t;
protected:
static_assert(impl::type_info<Types...>::no_reference_types, "Reference types are not permitted in static_variant.");
static_assert(impl::type_info<Types...>::no_duplicates, "static_variant type arguments contain duplicate types.");
@ -260,7 +263,6 @@ protected:
template<typename X>
using type_in_typelist = typename std::enable_if<impl::position<X, Types...>::pos != -1, X>::type; // type is in typelist of static_variant.
using tag_type = int64_t;
tag_type _tag;
impl::dynamic_storage storage;