diff --git a/include/fc/static_variant.hpp b/include/fc/static_variant.hpp index d6206c2..688d4b9 100644 --- a/include/fc/static_variant.hpp +++ b/include/fc/static_variant.hpp @@ -327,6 +327,7 @@ public: static int count() { return impl::type_info::count; } void set_which( int w ) { + FC_ASSERT( w >= 0 ); FC_ASSERT( w < count() ); this->~static_variant(); _tag = w;