Resove #651: Make add_secondary_index return index
A pointer to the newly created index object is now returned.
This commit is contained in:
parent
f382c39835
commit
c108a78b35
1 changed files with 1 additions and 0 deletions
|
|
@ -168,6 +168,7 @@ namespace graphene { namespace db {
|
|||
void add_secondary_index()
|
||||
{
|
||||
_sindex.emplace_back( new T() );
|
||||
return static_cast<T*>(_sindex.back().get());
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
|
|
|
|||
Loading…
Reference in a new issue