From 7e304575286aee5b987e6f811add30f39338c7a5 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 3 Jan 2015 21:44:09 +0000 Subject: Use native for instead BOOST_FOREACH --- libjsonpp/serialize.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libjsonpp/serialize.cpp b/libjsonpp/serialize.cpp index 1b542e4..7fde08e 100644 --- a/libjsonpp/serialize.cpp +++ b/libjsonpp/serialize.cpp @@ -1,6 +1,5 @@ #include #include "jsonpp.h" -#include #include namespace json { @@ -38,7 +37,7 @@ namespace json { s << std::boolalpha; s << std::fixed; s << '{'; - BOOST_FOREACH(const Object::value_type & v, o) { + for (const Object::value_type & v : o) { if (&v != &*o.begin()) { s << ','; } @@ -55,7 +54,7 @@ namespace json { void serializeArray(const Array & a, std::ostream & s, const std::string & enc) { s << '['; - BOOST_FOREACH(const Array::value_type & v, a) { + for (const Array::value_type & v : a) { if (&v != &*a.begin()) { s << ','; } -- cgit v1.2.3