Merge pull request #195 from bitshares/replace-int-in-static-variant
Replace int with 64-bit types in static_variant
This commit is contained in:
commit
907a81b434
1 changed files with 2 additions and 2 deletions
|
|
@ -118,7 +118,7 @@ public:
|
||||||
template<typename X, typename = type_in_typelist<X>>
|
template<typename X, typename = type_in_typelist<X>>
|
||||||
struct tag
|
struct tag
|
||||||
{
|
{
|
||||||
static constexpr int value = typelist::index_of<list, X>();
|
static constexpr tag_type value = typelist::index_of<list, X>();
|
||||||
};
|
};
|
||||||
|
|
||||||
struct type_lt {
|
struct type_lt {
|
||||||
|
|
@ -302,7 +302,7 @@ public:
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
static constexpr int count() { return typelist::length<list>(); }
|
static constexpr size_t count() { return typelist::length<list>(); }
|
||||||
void set_which( tag_type w ) {
|
void set_which( tag_type w ) {
|
||||||
FC_ASSERT( w >= 0 );
|
FC_ASSERT( w >= 0 );
|
||||||
FC_ASSERT( w < count() );
|
FC_ASSERT( w < count() );
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue