diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-01-03 21:44:09 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-01-04 15:52:04 +0000 |
commit | 7e304575286aee5b987e6f811add30f39338c7a5 (patch) | |
tree | f8a8b63ab0bf4b4ee1896d386034f7d7e8fbd875 | |
parent | Support complex types in rows and parameters (diff) | |
download | libjsonpp-7e304575286aee5b987e6f811add30f39338c7a5.tar.bz2 libjsonpp-7e304575286aee5b987e6f811add30f39338c7a5.tar.xz libjsonpp-7e304575286aee5b987e6f811add30f39338c7a5.zip |
Use native for instead BOOST_FOREACH
-rw-r--r-- | libjsonpp/serialize.cpp | 5 |
1 files 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 <pch.hpp> #include "jsonpp.h" -#include <boost/foreach.hpp> #include <glibmm/convert.h> 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 << ','; } |