diff --git a/libraries/db/include/graphene/db/index.hpp b/libraries/db/include/graphene/db/index.hpp index 7ecf5a66..1a33185c 100644 --- a/libraries/db/include/graphene/db/index.hpp +++ b/libraries/db/include/graphene/db/index.hpp @@ -168,6 +168,7 @@ namespace graphene { namespace db { void add_secondary_index() { _sindex.emplace_back( new T() ); + return static_cast(_sindex.back().get()); } template