From 1bc9522366f046150d081be70b538d8c126d0cd1 Mon Sep 17 00:00:00 2001 From: Marc Page Date: Tue, 29 Apr 2025 08:16:05 -0500 Subject: [PATCH] Fix linker error: duplicate symbol: Value::isNull --- src/yajson/yajson.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/yajson/yajson.h b/src/yajson/yajson.h index 5571fd9..c8560ea 100644 --- a/src/yajson/yajson.h +++ b/src/yajson/yajson.h @@ -382,7 +382,7 @@ inline std::string Value::string() const { return isNull() ? std::string() : _instance->string(); } -bool Value::isNull() const { +inline bool Value::isNull() const { return nullptr == _instance; } @@ -1320,4 +1320,4 @@ inline void Object::set(const std::string& key, const Value& value) { } #undef YaJsonAssert -} \ No newline at end of file +}