Merge pull request #21 from FollowMyVote/fixindex

Fix index.hpp
This commit is contained in:
Nathan Hourt 2016-11-07 17:57:14 -06:00 committed by GitHub
commit 0e42671a7e

View file

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