mirror of
https://gitflic.ru/project/erthink/libmdbx.git
synced 2025-02-05 06:45:51 +00: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,
|
inline MDBX_error_t put(map_handle map, const slice &key, slice *value,
|
||||||
MDBX_put_flags_t flags) noexcept;
|
MDBX_put_flags_t flags) noexcept;
|
||||||
inline void put(map_handle map, const slice &key, slice value,
|
inline void put(map_handle map, const slice &key, slice value, put_mode mode);
|
||||||
put_mode mode) noexcept;
|
|
||||||
inline void insert(map_handle map, const slice &key, slice value);
|
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 value_result try_insert(map_handle map, const slice &key, slice value);
|
||||||
inline slice insert_reserve(map_handle map, const slice &key,
|
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,
|
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)));
|
error::success_or_throw(put(map, key, &value, MDBX_put_flags_t(mode)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user