From e2216f70f59e073946c46c5f4a46ad511a8e1e2e Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Wed, 16 Sep 2020 01:17:47 +0300 Subject: [PATCH] mdbx++: minor refine/add comments. Change-Id: I8e33a762ea86584a63813cf6c3814a95ba44f37b --- mdbx.h++ | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mdbx.h++ b/mdbx.h++ index b6d2188f..d2f962a2 100644 --- a/mdbx.h++ +++ b/mdbx.h++ @@ -161,8 +161,11 @@ namespace mdbx { // Functions whose signature depends on the `mdbx::byte` type // must be strictly defined as inline! #if defined(DOXYGEN) || (defined(__cpp_char8_t) && __cpp_char8_t >= 201811) +// Wanna using a non-aliasing type to release more power of an optimizer. using byte = char8_t; #else +// Wanna not using std::byte since it doesn't add features, +// but add inconvenient restrictions. using byte = unsigned char; #endif /* __cpp_char8_t >= 201811*/ @@ -2613,7 +2616,7 @@ public: /// map handle. inline void bind(::mdbx::txn &txn, ::mdbx::map_handle map_handle); - /// \brief Return the cursor's transaction. + /// \brief Returns the cursor's transaction. inline ::mdbx::txn txn() const; inline map_handle map() const;