From 17165f53949a7de5ee739ec5b93c0fe54575512a Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Tue, 20 Apr 2021 23:18:05 -0500 Subject: [PATCH] [ox/oc] Add missing nodiscards --- deps/ox/src/ox/oc/write.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deps/ox/src/ox/oc/write.hpp b/deps/ox/src/ox/oc/write.hpp index ae386a90..07138b87 100644 --- a/deps/ox/src/ox/oc/write.hpp +++ b/deps/ox/src/ox/oc/write.hpp @@ -76,10 +76,12 @@ class OrganicClawWriter { } private: + [[nodiscard]] constexpr bool targetValid() noexcept { return static_cast(m_fieldIt) == m_unionIdx || m_unionIdx == -1; } + [[nodiscard]] Json::Value &value(const char *key); };