👌 fixed some issues from the last commit #875
This commit is contained in:
parent
920f64c01c
commit
fb8482db76
2 changed files with 7 additions and 10 deletions
|
@ -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.
|
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
|
## Thanks
|
||||||
|
|
15
src/json.hpp
15
src/json.hpp
|
@ -997,10 +997,9 @@ void to_json(BasicJsonType& j, const std::vector<bool>& e)
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename BasicJsonType, typename CompatibleArrayType,
|
template<typename BasicJsonType, typename CompatibleArrayType,
|
||||||
enable_if_t <
|
enable_if_t<is_compatible_array_type<BasicJsonType, CompatibleArrayType>::value or
|
||||||
is_compatible_array_type<BasicJsonType, CompatibleArrayType>::value or
|
std::is_same<typename BasicJsonType::array_t, CompatibleArrayType>::value,
|
||||||
std::is_same<typename BasicJsonType::array_t, CompatibleArrayType>::value,
|
int> = 0>
|
||||||
int> = 0>
|
|
||||||
void to_json(BasicJsonType& j, const CompatibleArrayType& arr)
|
void to_json(BasicJsonType& j, const CompatibleArrayType& arr)
|
||||||
{
|
{
|
||||||
external_constructor<value_t::array>::construct(j, arr);
|
external_constructor<value_t::array>::construct(j, arr);
|
||||||
|
@ -1611,11 +1610,9 @@ class input_adapter
|
||||||
|
|
||||||
/// input adapter for contiguous container
|
/// input adapter for contiguous container
|
||||||
template<class ContiguousContainer, typename
|
template<class ContiguousContainer, typename
|
||||||
std::enable_if <
|
std::enable_if<not std::is_pointer<ContiguousContainer>::value and
|
||||||
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,
|
||||||
std::is_base_of<std::random_access_iterator_tag,
|
int>::type = 0>
|
||||||
typename std::iterator_traits<decltype(std::begin(std::declval<ContiguousContainer const>()))>::iterator_category>::value,
|
|
||||||
int>::type = 0>
|
|
||||||
input_adapter(const ContiguousContainer& c)
|
input_adapter(const ContiguousContainer& c)
|
||||||
: input_adapter(std::begin(c), std::end(c)) {}
|
: input_adapter(std::begin(c), std::end(c)) {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue