Add `keyConv` function for `string_view`

This commit is contained in:
Martchus 2022-01-25 23:25:27 +01:00
parent f2042c59a5
commit 31a45912dc
1 changed files with 6 additions and 0 deletions

View File

@ -47,6 +47,12 @@ inline string_view keyConv(const T& t)
return t;
}
template<class T, typename std::enable_if<std::is_same<T, string_view>::value,T>::type* = nullptr>
inline string_view keyConv(string_view t)
{
return t;
}
/*!
* \brief The LMDBIndexOps struct implements index operations, but only the operations that
* are broadcast to all indexes.