mdbx++: enables C++ API for amalgamated source code.

Change-Id: Ie73f32ee6b9a565eee69fa7267798a0fd67db4b0
This commit is contained in:
Leonid Yuriev
2020-09-13 18:06:14 +03:00
parent cd4caeb03d
commit 6c70a7fe11
5 changed files with 70 additions and 61 deletions

View File

@@ -33,7 +33,6 @@
#include <cassert> // for assert()
#include <cstring> // for std::strlen, str:memcmp
#include <exception> // for std::exception_ptr
#include <memory> // for std::uniq_ptr
#include <ostream> // for std::ostream
#include <sstream> // for std::ostringstream
#include <stdexcept> // for std::invalid_argument
@@ -2220,7 +2219,7 @@ public:
/// pages) in bytes.
size_t size_current() const {
assert(is_readwrite());
return get_info().txn_space_dirty;
return size_t(get_info().txn_space_dirty);
}
//----------------------------------------------------------------------------