diff --git a/include/caosdb/value.h b/include/caosdb/value.h index b7da9903eece341955bb1d9a93e3e89d72f866eb..fd70c4f837dccaeedca0c9801c2518eb111af398 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;