From 4f47d987cdb1ac6e15b52705ea44124083436a4c Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Tue, 31 Jul 2018 17:44:08 -0700 Subject: [PATCH] ceph_json: define second param for std::set encode_json() template Signed-off-by: Yehuda Sadeh --- src/common/ceph_json.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/common/ceph_json.h b/src/common/ceph_json.h index d83e6aae721..02b70758be5 100644 --- a/src/common/ceph_json.h +++ b/src/common/ceph_json.h @@ -385,11 +385,12 @@ static void encode_json(const char *name, const std::deque& l, ceph::Formatte encode_json("obj", *iter, f); } f->close_section(); -}template -static void encode_json(const char *name, const std::set& l, ceph::Formatter *f) +} +template > +static void encode_json(const char *name, const std::set& l, ceph::Formatter *f) { f->open_array_section(name); - for (typename std::set::const_iterator iter = l.begin(); iter != l.end(); ++iter) { + for (typename std::set::const_iterator iter = l.begin(); iter != l.end(); ++iter) { encode_json("obj", *iter, f); } f->close_section(); -- 2.39.5