From 7bb2011542d1fda158d0415bd02da02c620694ef Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Thu, 17 Apr 2014 12:23:21 -0700 Subject: [PATCH] encoding: use unqualified name for encode/decode in boost::optional encoding Signed-off-by: Samuel Just --- src/include/encoding.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/include/encoding.h b/src/include/encoding.h index d0974823c1fbc..434d1588321ec 100644 --- a/src/include/encoding.h +++ b/src/include/encoding.h @@ -303,7 +303,7 @@ inline void encode(const boost::optional &p, bufferlist &bl) __u8 present = static_cast(p); ::encode(present, bl); if (p) - ::encode(p.get(), bl); + encode(p.get(), bl); } template @@ -314,7 +314,7 @@ inline void decode(boost::optional &p, bufferlist::iterator &bp) if (present) { T t; p = t; - ::decode(p.get(), bp); + decode(p.get(), bp); } } -- 2.39.5