Updates from BitShares FC #22
1 changed files with 1 additions and 0 deletions
|
|
@ -327,6 +327,7 @@ public:
|
||||||
|
|
||||||
static int count() { return impl::type_info<Types...>::count; }
|
static int count() { return impl::type_info<Types...>::count; }
|
||||||
void set_which( int w ) {
|
void set_which( int w ) {
|
||||||
|
FC_ASSERT( w >= 0 );
|
||||||
FC_ASSERT( w < count() );
|
FC_ASSERT( w < count() );
|
||||||
this->~static_variant();
|
this->~static_variant();
|
||||||
_tag = w;
|
_tag = w;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue