Skip to content

Commit ab10bca

Browse files
committed
tidy includes
1 parent 2b12b37 commit ab10bca

33 files changed

+57
-36
lines changed

include/jsoncons/byte_string.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <memory> // std::allocator
1717
#include <ostream>
1818
#include <sstream>
19+
#include <type_traits>
1920
#include <utility> // std::move
2021
#include <vector>
2122

include/jsoncons/conv_error.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <cstddef>
1111
#include <string>
1212
#include <system_error>
13+
#include <type_traits>
1314

1415
#include <jsoncons/config/jsoncons_config.hpp>
1516
#include <jsoncons/json_exception.hpp>

include/jsoncons/detail/write_number.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <stdexcept>
1616
#include <stdio.h> // snprintf
1717
#include <string>
18+
#include <type_traits>
1819

1920
#include <jsoncons/config/jsoncons_config.hpp>
2021
#include <jsoncons/detail/grisu3.hpp>

include/jsoncons/json_error.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
#include <string>
1111
#include <system_error>
12+
#include <type_traits>
1213

1314
#include <jsoncons/config/jsoncons_config.hpp>
1415

include/jsoncons/json_exception.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
// See https://github.com/danielaparker/jsoncons for latest version
66

7-
#ifndef JSON_EXCEPTION_HPP
8-
#define JSON_EXCEPTION_HPP
7+
#ifndef JSONCONS_JSON_EXCEPTION_HPP
8+
#define JSONCONS_JSON_EXCEPTION_HPP
99

1010
#include <cstddef>
1111
#include <exception>
@@ -220,4 +220,4 @@ namespace jsoncons {
220220

221221
} // namespace jsoncons
222222

223-
#endif // JSON_EXCEPTION_HPP
223+
#endif // JSONCONS_JSON_EXCEPTION_HPP

include/jsoncons/json_options.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <string>
1414
#include <system_error>
1515

16+
#include <jsoncons/config/compiler_support.hpp>
1617
#include <jsoncons/json_error.hpp>
1718
#include <jsoncons/ser_context.hpp>
1819

include/jsoncons/json_parser.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <unordered_map>
1818
#include <vector>
1919

20+
#include <jsoncons/config/compiler_support.hpp>
2021
#include <jsoncons/chunk_reader.hpp>
2122
#include <jsoncons/detail/parse_number.hpp>
2223
#include <jsoncons/json_error.hpp>

include/jsoncons/json_reader.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@
88
#define JSONCONS_JSON_READER_HPP
99

1010
#include <cstddef>
11+
#include <functional>
1112
#include <ios>
1213
#include <memory> // std::allocator
1314
#include <string>
1415
#include <system_error>
1516
#include <utility> // std::move
1617

18+
#include <jsoncons/config/compiler_support.hpp>
1719
#include <jsoncons/json_exception.hpp>
1820
#include <jsoncons/json_parser.hpp>
1921
#include <jsoncons/json_visitor.hpp>

include/jsoncons/utility/unicode_traits.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include <type_traits>
2626

2727
#include <jsoncons/config/compiler_support.hpp>
28+
#include <jsoncons/config/jsoncons_config.hpp>
2829
#include <jsoncons/utility/extension_traits.hpp>
2930

3031
namespace jsoncons { namespace unicode_traits {

include/jsoncons/utility/uri.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <iostream>
1414
#include <string> // std::string
1515
#include <system_error>
16+
#include <type_traits>
1617
#include <utility>
1718

1819
#include <jsoncons/config/jsoncons_config.hpp>

0 commit comments

Comments
 (0)