aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/include
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2023-05-12 14:13:00 +0200
committerGitHub <[email protected]>2023-05-12 14:13:00 +0200
commit9b74445504fb20401c174241b93c99bf765b43ce (patch)
tree9e9ce2abe0f17c9ec327fb8fe3ecba4bea35f1c0 /src/zencore/include
parentbetter logging/exception when reading file in IoBuffer::Materialize fails (#294) (diff)
downloadzen-9b74445504fb20401c174241b93c99bf765b43ce.tar.xz
zen-9b74445504fb20401c174241b93c99bf765b43ce.zip
implemented structured cache logging (#296)
may be used as audit trail to help analyse potential cache pollution/corruption * also added common header with timestamp to all known log targets * made `Oid::operator bool` explicit to avoid logging/text format mishaps * made `HttpClient::operator bool` explicit
Diffstat (limited to 'src/zencore/include')
-rw-r--r--src/zencore/include/zencore/uid.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zencore/include/zencore/uid.h b/src/zencore/include/zencore/uid.h
index 9659f5893..a356da88d 100644
--- a/src/zencore/include/zencore/uid.h
+++ b/src/zencore/include/zencore/uid.h
@@ -63,8 +63,8 @@ struct Oid
void ToString(char OutString[StringLength]);
[[nodiscard]] static Oid FromMemory(const void* Ptr);
- auto operator<=>(const Oid& rhs) const = default;
- [[nodiscard]] inline operator bool() const { return *this != Zero; }
+ auto operator<=>(const Oid& rhs) const = default;
+ [[nodiscard]] inline explicit operator bool() const { return *this != Zero; }
static const Oid Zero; // Min (can be used to signify a "null" value, or for open range queries)
static const Oid Max; // Max (can be used for open range queries)