From 60aac896f1312b3ca29b338e7d65e09fc798a0d0 Mon Sep 17 00:00:00 2001 From: Timm Fitschen <t.fitschen@indiscale.com> Date: Tue, 21 Sep 2021 10:34:32 +0200 Subject: [PATCH] BUG: make Value non-abstract class --- include/caosdb/value.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/include/caosdb/value.h b/include/caosdb/value.h index b7da990..fd70c4f 100644 --- a/include/caosdb/value.h +++ b/include/caosdb/value.h @@ -247,9 +247,8 @@ public: static const std::vector<ScalarValue> empty_collection; return empty_collection; } - inline auto ToString() const noexcept -> const std::string { - CAOSDB_DEBUG_MESSAGE_STRING(*wrapped, out) - return out; + [[nodiscard]] inline auto ToString() const noexcept -> const std::string { + return ProtoMessageWrapper::ToString(); } friend class Value; @@ -416,6 +415,10 @@ public: return *this; } + [[nodiscard]] inline auto ToString() const noexcept -> const std::string { + return ProtoMessageWrapper::ToString(); + } + friend class Entity; friend class Property; -- GitLab