From fb8482db767bf46c65c56a984238ed8564e829de Mon Sep 17 00:00:00 2001
From: Niels Lohmann <mail@nlohmann.me>
Date: Wed, 13 Dec 2017 23:44:53 +0100
Subject: [PATCH] :ok_hand: fixed some issues from the last commit #875

---
 README.md    |  2 +-
 src/json.hpp | 15 ++++++---------
 2 files changed, 7 insertions(+), 10 deletions(-)

diff --git a/README.md b/README.md
index 54f73a8d..7b50c841 100644
--- a/README.md
+++ b/README.md
@@ -813,7 +813,7 @@ The class contains the UTF-8 Decoder from Bjoern Hoehrmann which is licensed und
 
 If you have questions regarding the library, I would like to invite you to [open an issue at Github](https://github.com/nlohmann/json/issues/new). Please describe your request, problem, or question as detailed as possible, and also mention the version of the library you are using as well as the version of your compiler and operating system. Opening an issue at Github allows other users and contributors to this library to collaborate. For instance, I have little experience with MSVC, and most issues in this regard have been solved by a growing community. If you have a look at the [closed issues](https://github.com/nlohmann/json/issues?q=is%3Aissue+is%3Aclosed), you will see that we react quite timely in most cases.
 
-Only if your request would contain confidential information, please [send me an email](mailto:mail@nlohmann.me). For encrypted messages, please usse [this key](https://keybase.io/nlohmann/pgp_keys.asc).
+Only if your request would contain confidential information, please [send me an email](mailto:mail@nlohmann.me). For encrypted messages, please use [this key](https://keybase.io/nlohmann/pgp_keys.asc).
 
 
 ## Thanks
diff --git a/src/json.hpp b/src/json.hpp
index 1f06b6dd..0eed04f7 100644
--- a/src/json.hpp
+++ b/src/json.hpp
@@ -997,10 +997,9 @@ void to_json(BasicJsonType& j, const std::vector<bool>& e)
 }
 
 template<typename BasicJsonType, typename CompatibleArrayType,
-         enable_if_t <
-             is_compatible_array_type<BasicJsonType, CompatibleArrayType>::value or
-             std::is_same<typename BasicJsonType::array_t, CompatibleArrayType>::value,
-             int> = 0>
+         enable_if_t<is_compatible_array_type<BasicJsonType, CompatibleArrayType>::value or
+                     std::is_same<typename BasicJsonType::array_t, CompatibleArrayType>::value,
+                     int> = 0>
 void to_json(BasicJsonType& j, const CompatibleArrayType& arr)
 {
     external_constructor<value_t::array>::construct(j, arr);
@@ -1611,11 +1610,9 @@ class input_adapter
 
     /// input adapter for contiguous container
     template<class ContiguousContainer, typename
-             std::enable_if <
-                 not std::is_pointer<ContiguousContainer>::value and
-                 std::is_base_of<std::random_access_iterator_tag,
-                                 typename std::iterator_traits<decltype(std::begin(std::declval<ContiguousContainer const>()))>::iterator_category>::value,
-                 int>::type = 0>
+             std::enable_if<not std::is_pointer<ContiguousContainer>::value and
+                            std::is_base_of<std::random_access_iterator_tag, typename std::iterator_traits<decltype(std::begin(std::declval<ContiguousContainer const>()))>::iterator_category>::value,
+                            int>::type = 0>
     input_adapter(const ContiguousContainer& c)
         : input_adapter(std::begin(c), std::end(c)) {}