From 6b6e5540673338839f10ff40cee3661007ab17ec Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Fri, 14 Apr 2017 17:37:28 +0200 Subject: [PATCH] :bug: added missing header std::setw needs the iomanip header (at least with GCC). --- doc/examples/diff.cpp | 1 + doc/examples/flatten.cpp | 1 + doc/examples/from_cbor.cpp | 1 + doc/examples/from_msgpack.cpp | 1 + doc/examples/meta.cpp | 1 + doc/examples/operator_deserialize.cpp | 1 + doc/examples/operator_serialize.cpp | 1 + doc/examples/operatorarray__key_type.cpp | 1 + doc/examples/parse__array__parser_callback_t.cpp | 1 + doc/examples/parse__contiguouscontainer__parser_callback_t.cpp | 1 + doc/examples/parse__istream__parser_callback_t.cpp | 1 + doc/examples/parse__iteratortype__parser_callback_t.cpp | 1 + doc/examples/parse__string__parser_callback_t.cpp | 1 + doc/examples/patch.cpp | 1 + doc/examples/to_cbor.cpp | 1 + doc/examples/to_msgpack.cpp | 1 + doc/examples/unflatten.cpp | 1 + 17 files changed, 17 insertions(+) diff --git a/doc/examples/diff.cpp b/doc/examples/diff.cpp index d81a58db..a377fc81 100644 --- a/doc/examples/diff.cpp +++ b/doc/examples/diff.cpp @@ -1,4 +1,5 @@ #include +#include // for std::setw using json = nlohmann::json; diff --git a/doc/examples/flatten.cpp b/doc/examples/flatten.cpp index ace53a21..e7b7ee87 100644 --- a/doc/examples/flatten.cpp +++ b/doc/examples/flatten.cpp @@ -1,4 +1,5 @@ #include +#include // for std::setw using json = nlohmann::json; diff --git a/doc/examples/from_cbor.cpp b/doc/examples/from_cbor.cpp index 92b05225..fc44d4a5 100644 --- a/doc/examples/from_cbor.cpp +++ b/doc/examples/from_cbor.cpp @@ -1,4 +1,5 @@ #include +#include // for std::setw using json = nlohmann::json; diff --git a/doc/examples/from_msgpack.cpp b/doc/examples/from_msgpack.cpp index d275f13a..7c4202c9 100644 --- a/doc/examples/from_msgpack.cpp +++ b/doc/examples/from_msgpack.cpp @@ -1,4 +1,5 @@ #include +#include // for std::setw using json = nlohmann::json; diff --git a/doc/examples/meta.cpp b/doc/examples/meta.cpp index 3a31ca24..28c88b8d 100644 --- a/doc/examples/meta.cpp +++ b/doc/examples/meta.cpp @@ -1,4 +1,5 @@ #include +#include // for std::setw using json = nlohmann::json; diff --git a/doc/examples/operator_deserialize.cpp b/doc/examples/operator_deserialize.cpp index a43cdf0f..06a98db9 100644 --- a/doc/examples/operator_deserialize.cpp +++ b/doc/examples/operator_deserialize.cpp @@ -1,4 +1,5 @@ #include +#include // for std::setw using json = nlohmann::json; diff --git a/doc/examples/operator_serialize.cpp b/doc/examples/operator_serialize.cpp index c1568d99..c3861b46 100644 --- a/doc/examples/operator_serialize.cpp +++ b/doc/examples/operator_serialize.cpp @@ -1,4 +1,5 @@ #include +#include // for std::setw using json = nlohmann::json; diff --git a/doc/examples/operatorarray__key_type.cpp b/doc/examples/operatorarray__key_type.cpp index e83a2ac0..795abc08 100644 --- a/doc/examples/operatorarray__key_type.cpp +++ b/doc/examples/operatorarray__key_type.cpp @@ -1,4 +1,5 @@ #include +#include // for std::setw using json = nlohmann::json; diff --git a/doc/examples/parse__array__parser_callback_t.cpp b/doc/examples/parse__array__parser_callback_t.cpp index 8e086d20..68ecf602 100644 --- a/doc/examples/parse__array__parser_callback_t.cpp +++ b/doc/examples/parse__array__parser_callback_t.cpp @@ -1,4 +1,5 @@ #include +#include // for std::setw using json = nlohmann::json; diff --git a/doc/examples/parse__contiguouscontainer__parser_callback_t.cpp b/doc/examples/parse__contiguouscontainer__parser_callback_t.cpp index 5a339079..45e376d9 100644 --- a/doc/examples/parse__contiguouscontainer__parser_callback_t.cpp +++ b/doc/examples/parse__contiguouscontainer__parser_callback_t.cpp @@ -1,4 +1,5 @@ #include +#include // for std::setw using json = nlohmann::json; diff --git a/doc/examples/parse__istream__parser_callback_t.cpp b/doc/examples/parse__istream__parser_callback_t.cpp index 6812a5e2..b5f84da4 100644 --- a/doc/examples/parse__istream__parser_callback_t.cpp +++ b/doc/examples/parse__istream__parser_callback_t.cpp @@ -1,4 +1,5 @@ #include +#include // for std::setw using json = nlohmann::json; diff --git a/doc/examples/parse__iteratortype__parser_callback_t.cpp b/doc/examples/parse__iteratortype__parser_callback_t.cpp index 3f723c5f..c7a5bf83 100644 --- a/doc/examples/parse__iteratortype__parser_callback_t.cpp +++ b/doc/examples/parse__iteratortype__parser_callback_t.cpp @@ -1,4 +1,5 @@ #include +#include // for std::setw using json = nlohmann::json; diff --git a/doc/examples/parse__string__parser_callback_t.cpp b/doc/examples/parse__string__parser_callback_t.cpp index 0a4f3b53..bea4914f 100644 --- a/doc/examples/parse__string__parser_callback_t.cpp +++ b/doc/examples/parse__string__parser_callback_t.cpp @@ -1,4 +1,5 @@ #include +#include // for std::setw using json = nlohmann::json; diff --git a/doc/examples/patch.cpp b/doc/examples/patch.cpp index 24a52d59..4dfada32 100644 --- a/doc/examples/patch.cpp +++ b/doc/examples/patch.cpp @@ -1,4 +1,5 @@ #include +#include // for std::setw using json = nlohmann::json; diff --git a/doc/examples/to_cbor.cpp b/doc/examples/to_cbor.cpp index 21a5ce86..2d07e8ab 100644 --- a/doc/examples/to_cbor.cpp +++ b/doc/examples/to_cbor.cpp @@ -1,4 +1,5 @@ #include +#include // for std::setw using json = nlohmann::json; diff --git a/doc/examples/to_msgpack.cpp b/doc/examples/to_msgpack.cpp index 21c8817a..dad83542 100644 --- a/doc/examples/to_msgpack.cpp +++ b/doc/examples/to_msgpack.cpp @@ -1,4 +1,5 @@ #include +#include // for std::setw using json = nlohmann::json; diff --git a/doc/examples/unflatten.cpp b/doc/examples/unflatten.cpp index e2b9b6b8..a01a6349 100644 --- a/doc/examples/unflatten.cpp +++ b/doc/examples/unflatten.cpp @@ -1,4 +1,5 @@ #include +#include // for std::setw using json = nlohmann::json;