Skip to content

Commit

Permalink
add include <ciso646> for non-conforming Microsoft compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
theodelrieu committed Aug 14, 2017
1 parent e0ccddf commit 444b7b7
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 20 deletions.
11 changes: 6 additions & 5 deletions src/detail/conversions/from_json.hpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#ifndef NLOHMANN_JSON_DETAIL_CONVERSIONS_FROM_JSON_HPP
#define NLOHMANN_JSON_DETAIL_CONVERSIONS_FROM_JSON_HPP

#include <algorithm> // transform
#include <array> // array
#include <algorithm> // transform
#include <array> // array
#include <ciso646> // and, not
#include <forward_list> // forward_list
#include <iterator> // inserter, front_inserter, end
#include <string> // string
#include <tuple> // tuple, make_tuple
#include <iterator> // inserter, front_inserter, end
#include <string> // string
#include <tuple> // tuple, make_tuple
#include <type_traits> // is_arithmetic, is_same, is_enum, underlying_type, is_convertible
#include <utility> // pair, declval

Expand Down
5 changes: 3 additions & 2 deletions src/detail/conversions/to_json.hpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#ifndef NLOHMANN_JSON_DETAIL_CONVERSIONS_TO_JSON_HPP
#define NLOHMANN_JSON_DETAIL_CONVERSIONS_TO_JSON_HPP

#include <ciso646> // or, and, not
#include <iterator> // begin, end
#include <tuple> // tuple, get<tuple>
#include <type_traits> // is_same, is_constructible, is_floating_point, is_enum, underlying_type
#include <vector> // vector
#include <tuple> // tuple, get<tuple>
#include <utility> // move, forward, declval, pair
#include <vector> // vector

#include "detail/meta.hpp"
#include "detail/value_t.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/detail/iterators/iter_impl.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef NLOHMANN_JSON_DETAIL_ITERATORS_ITER_IMPL_HPP
#define NLOHMANN_JSON_DETAIL_ITERATORS_ITER_IMPL_HPP

#include <ciso646> // not
#include <iterator> // iterator, random_access_iterator_tag, bidirectional_iterator_tag, advance, next
#include <type_traits> // conditional, is_const, remove_const

Expand Down
3 changes: 2 additions & 1 deletion src/detail/iterators/primitive_iterator.hpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#ifndef NLOHMANN_JSON_DETAIL_ITERATORS_PRIMITIVE_ITERATOR_HPP
#define NLOHMANN_JSON_DETAIL_ITERATORS_PRIMITIVE_ITERATOR_HPP

#include <ciso646> // not
#include <cstddef> // ptrdiff_t
#include <limits> // numeric_limits
#include <ostream> // ostream
#include <limits> // numeric_limits

namespace nlohmann
{
Expand Down
2 changes: 2 additions & 0 deletions src/detail/macro_scope.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef NLOHMANN_JSON_MACRO_SCOPE_HPP
#define NLOHMANN_JSON_MACRO_SCOPE_HPP

#include <ciso646> // not

// This file contains all internal macro definitions
// You MUST include macro_unscope.hpp at the end of json.hpp to undef all of them

Expand Down
1 change: 1 addition & 0 deletions src/detail/meta.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef NLOHMANN_JSON_DETAIL_META_HPP
#define NLOHMANN_JSON_DETAIL_META_HPP

#include <ciso646> // not
#include <cstddef> // size_t
#include <limits> // numeric_limits
#include <type_traits> // conditional, enable_if, false_type, integral_constant, is_constructible, is_integral, is_same, remove_cv, remove_reference, true_type
Expand Down
23 changes: 12 additions & 11 deletions src/detail/serializer.hpp
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
#ifndef NLOHMANN_JSON_DETAIL_SERIALIZER_HPP
#define NLOHMANN_JSON_DETAIL_SERIALIZER_HPP

#include <algorithm> // reverse, remove, fill, find, none_of
#include <array> // array
#include <cassert> // assert
#include <clocale> // localeconv, lconv
#include <cmath> // labs, isfinite, isnan, signbit
#include <cstddef> // size_t, ptrdiff_t
#include <cstdint> // uint8_t
#include <cstdio> // snprintf
#include <iterator> // next
#include <limits> // numeric_limits
#include <string> // string
#include <algorithm> // reverse, remove, fill, find, none_of
#include <array> // array
#include <cassert> // assert
#include <ciso646> // and, or
#include <clocale> // localeconv, lconv
#include <cmath> // labs, isfinite, isnan, signbit
#include <cstddef> // size_t, ptrdiff_t
#include <cstdint> // uint8_t
#include <cstdio> // snprintf
#include <iterator> // next
#include <limits> // numeric_limits
#include <string> // string
#include <type_traits> // is_same

#include "detail/macro_scope.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/detail/value_t.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef NLOHMANN_JSON_DETAIL_VALUE_T_HPP
#define NLOHMANN_JSON_DETAIL_VALUE_T_HPP

#include <ciso646> // and
#include <cstdint> // uint8_t

namespace nlohmann
Expand Down
2 changes: 1 addition & 1 deletion src/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ SOFTWARE.
#define NLOHMANN_JSON_HPP

#include <algorithm> // all_of, find, for_each
#include <cassert> // assert
#include <cassert> // assert
#include <ciso646> // and, not, or
#include <cstddef> // nullptr_t, ptrdiff_t, size_t
#include <functional> // hash, less
Expand Down

0 comments on commit 444b7b7

Please sign in to comment.