Fix constness of `MDBOutVal::get()`

The member function itself needs to be const, not the return value.
This commit is contained in:
Marius Kittler 2023-12-16 21:19:24 +01:00
parent 02c64c8897
commit d8ca70bca1
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ struct LMDB_SAFE_EXPORT MDBOutVal {
return d_mdbval;
}
template <class T, typename std::enable_if<std::is_arithmetic<T>::value, T>::type * = nullptr> const T get()
template <class T, typename std::enable_if<std::is_arithmetic<T>::value, T>::type * = nullptr> T get() const
{
T ret;
if (d_mdbval.mv_size != sizeof(T))