summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libjsonpp/serialize.cpp5
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 << ',';
}