From 56378772cc0b7a1109dd56dcba1c9f3d9f8821a4 Mon Sep 17 00:00:00 2001 From: Lirusaito Date: Sun, 28 Apr 2019 08:51:22 -0400 Subject: [PATCH] Add operator == for LLSD to llsdutil.h --- indra/llcommon/llsdutil.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/indra/llcommon/llsdutil.h b/indra/llcommon/llsdutil.h index 1d68009ca..e9c366212 100644 --- a/indra/llcommon/llsdutil.h +++ b/indra/llcommon/llsdutil.h @@ -144,6 +144,11 @@ LL_COMMON_API std::string llsd_matches(const LLSD& prototype, const LLSD& data, /// is_approx_equal_fraction(). LL_COMMON_API bool llsd_equals(const LLSD& lhs, const LLSD& rhs, int bits=-1); +inline bool operator==(const LLSD& lhs, const LLSD& rhs) +{ + return llsd_equals(lhs, rhs, 8); +} + // Simple function to copy data out of input & output iterators if // there is no need for casting. template LLSD llsd_copy_array(Input iter, Input end)