diff --git a/libraries/db/include/graphene/db/generic_index.hpp b/libraries/db/include/graphene/db/generic_index.hpp index 96e982ef..8a433264 100644 --- a/libraries/db/include/graphene/db/generic_index.hpp +++ b/libraries/db/include/graphene/db/generic_index.hpp @@ -80,6 +80,8 @@ namespace graphene { namespace chain { virtual const object* find( object_id_type id )const override { + static_assert(std::is_same::value, + "First index of MultiIndexType MUST be object_id_type!"); auto itr = _indices.find( id ); if( itr == _indices.end() ) return nullptr; return &*itr;