mirror of
https://github.com/isar/libmdbx.git
synced 2024-10-29 23:19:20 +08:00
mdbx++: remove noexcept
from potentially throwing txn::put()
.
This commit is contained in:
parent
bf603bdffc
commit
c714ee9b55
5
mdbx.h++
5
mdbx.h++
@ -3606,8 +3606,7 @@ public:
|
||||
|
||||
inline MDBX_error_t put(map_handle map, const slice &key, slice *value,
|
||||
MDBX_put_flags_t flags) noexcept;
|
||||
inline void put(map_handle map, const slice &key, slice value,
|
||||
put_mode mode) noexcept;
|
||||
inline void put(map_handle map, const slice &key, slice value, put_mode mode);
|
||||
inline void insert(map_handle map, const slice &key, slice value);
|
||||
inline value_result try_insert(map_handle map, const slice &key, slice value);
|
||||
inline slice insert_reserve(map_handle map, const slice &key,
|
||||
@ -5166,7 +5165,7 @@ inline MDBX_error_t txn::put(map_handle map, const slice &key, slice *value,
|
||||
}
|
||||
|
||||
inline void txn::put(map_handle map, const slice &key, slice value,
|
||||
put_mode mode) noexcept {
|
||||
put_mode mode) {
|
||||
error::success_or_throw(put(map, key, &value, MDBX_put_flags_t(mode)));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user