Fix index.hpp

Bad return type.
This commit is contained in:
Nathan Hourt 2016-05-16 14:12:57 -05:00
parent c108a78b35
commit dc9e0fa025

View file

@ -165,7 +165,7 @@ namespace graphene { namespace db {
void on_modify( const object& obj ); void on_modify( const object& obj );
template<typename T> template<typename T>
void add_secondary_index() T* add_secondary_index()
{ {
_sindex.emplace_back( new T() ); _sindex.emplace_back( new T() );
return static_cast<T*>(_sindex.back().get()); return static_cast<T*>(_sindex.back().get());