diff --git a/lmdb-typed.hh b/lmdb-typed.hh index e249dfb..9c15365 100644 --- a/lmdb-typed.hh +++ b/lmdb-typed.hh @@ -379,12 +379,12 @@ public: } //! Get item through index N, then via the main database - template IDType get(const index_t &key, T &out) + template IDType get(const index_t &key, ElementType &out) { auto idValue = MDBOutVal(); if (!(*d_parent.d_txn)->get(std::get(d_parent.d_parent->d_tuple).d_idx, keyConv(key), idValue)) { const auto id = idValue.get(); - if (get(id, out)) { + if (get(id, out)) { return id; } }