commit
0e42671a7e
1 changed files with 2 additions and 1 deletions
|
|
@ -165,9 +165,10 @@ 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());
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue