From 98a16ce397a97a5ff0f950fb2cca29fabb2371f8 Mon Sep 17 00:00:00 2001 From: abitmore Date: Sun, 29 Mar 2020 20:40:16 +0000 Subject: [PATCH] Replace int with 64-bit types in static_variant --- include/fc/static_variant.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fc/static_variant.hpp b/include/fc/static_variant.hpp index 88069d0..768231a 100644 --- a/include/fc/static_variant.hpp +++ b/include/fc/static_variant.hpp @@ -118,7 +118,7 @@ public: template> struct tag { - static constexpr int value = typelist::index_of(); + static constexpr tag_type value = typelist::index_of(); }; struct type_lt { @@ -302,7 +302,7 @@ public: }); } - static constexpr int count() { return typelist::length(); } + static constexpr size_t count() { return typelist::length(); } void set_which( tag_type w ) { FC_ASSERT( w >= 0 ); FC_ASSERT( w < count() );