diff --git a/lmdb-typed.hh b/lmdb-typed.hh index 6c299d6..69aadcc 100644 --- a/lmdb-typed.hh +++ b/lmdb-typed.hh @@ -150,6 +150,13 @@ private: func(std::get<0>(tuple)); } }; + template struct IndexIterator { + static inline void apply(Tuple &tuple, auto &&func) + { + CPP_UTILITIES_UNUSED(tuple) + CPP_UTILITIES_UNUSED(func) + } + }; void forEachIndex(auto &&func) { IndexIterator>::apply(d_tuple, std::forward(func));