Fix constness of `MDBOutVal::get()`
The member function itself needs to be const, not the return value.
This commit is contained in:
parent
02c64c8897
commit
d8ca70bca1
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue