From 794deeb7b3d6e22f42a2fc28ad4ea903b02accf0 Mon Sep 17 00:00:00 2001 From: Keita Iwabuchi Date: Tue, 3 May 2022 20:45:05 -0700 Subject: [PATCH 1/2] Bugfix: general_string_equal --- include/metall/container/experimental/json/string.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/metall/container/experimental/json/string.hpp b/include/metall/container/experimental/json/string.hpp index 852c0a6f..a296f2a7 100644 --- a/include/metall/container/experimental/json/string.hpp +++ b/include/metall/container/experimental/json/string.hpp @@ -11,8 +11,9 @@ namespace metall::container::experimental::json { namespace jsndtl { -template -inline bool general_string_equal(const string &string, const other_string_type &other_string) noexcept { +template +inline bool general_string_equal(const string &string, + const other_string_type &other_string) noexcept { return std::strcmp(string.c_str(), other_string.c_str()) == 0; } From 2d625cbd161ea3eafcd8278010fa326777e59014 Mon Sep 17 00:00:00 2001 From: Keita Iwabuchi Date: Tue, 3 May 2022 20:54:46 -0700 Subject: [PATCH 2/2] Bugfix: general_string_equal --- include/metall/container/experimental/json/json_fwd.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/metall/container/experimental/json/json_fwd.hpp b/include/metall/container/experimental/json/json_fwd.hpp index 480e95c3..db41faa2 100644 --- a/include/metall/container/experimental/json/json_fwd.hpp +++ b/include/metall/container/experimental/json/json_fwd.hpp @@ -63,8 +63,8 @@ inline bool general_indexed_object_equal(const indexed_object &, template inline bool general_array_equal(const array &, const other_array_type &) noexcept; -template -inline bool general_string_equal(const string &, const other_string_type &) noexcept; +template +inline bool general_string_equal(const string &, const other_string_type &) noexcept; } #endif // DOXYGEN_SKIP