diff --git a/libraries/db/include/graphene/db/index.hpp b/libraries/db/include/graphene/db/index.hpp index 1a33185c..aebdb8b9 100644 --- a/libraries/db/include/graphene/db/index.hpp +++ b/libraries/db/include/graphene/db/index.hpp @@ -165,7 +165,7 @@ namespace graphene { namespace db { void on_modify( const object& obj ); template - void add_secondary_index() + T* add_secondary_index() { _sindex.emplace_back( new T() ); return static_cast(_sindex.back().get());