🔨 moved class json_pointer into separate file #920

parent e95578f8
...@@ -16,6 +16,7 @@ SRCS = develop/json.hpp \ ...@@ -16,6 +16,7 @@ SRCS = develop/json.hpp \
develop/detail/iterators/iteration_proxy.hpp \ develop/detail/iterators/iteration_proxy.hpp \
develop/detail/iterators/json_reverse_iterator.hpp \ develop/detail/iterators/json_reverse_iterator.hpp \
develop/detail/iterators/primitive_iterator.hpp \ develop/detail/iterators/primitive_iterator.hpp \
develop/detail/json_pointer.hpp \
develop/detail/json_ref.hpp \ develop/detail/json_ref.hpp \
develop/detail/macro_scope.hpp \ develop/detail/macro_scope.hpp \
develop/detail/macro_unscope.hpp \ develop/detail/macro_unscope.hpp \
...@@ -273,6 +274,14 @@ check-amalgamation: ...@@ -273,6 +274,14 @@ check-amalgamation:
@diff src/json.hpp src/json.hpp~ || (echo "===================================================================\n Amalgamation required! Please read the contribution guidelines\n in file .github/CONTRIBUTING.md.\n===================================================================" ; mv src/json.hpp~ src/json.hpp ; false) @diff src/json.hpp src/json.hpp~ || (echo "===================================================================\n Amalgamation required! Please read the contribution guidelines\n in file .github/CONTRIBUTING.md.\n===================================================================" ; mv src/json.hpp~ src/json.hpp ; false)
@mv src/json.hpp~ src/json.hpp @mv src/json.hpp~ src/json.hpp
# check if every header in develop includes sufficient headers to be compiled
# individually
check-single-includes:
for x in $(SRCS); do \
echo "#include \"$$x\"\nint main() {}\n" | sed 's|develop/||' > single_include_test.cpp; \
$(CXX) $(CXXFLAGS) -Idevelop -std=c++11 single_include_test.cpp -o single_include_test; \
rm single_include_test.cpp single_include_test; \
done
########################################################################## ##########################################################################
# changelog # changelog
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include <string> // char_traits, string #include <string> // char_traits, string
#include <utility> // make_pair, move #include <utility> // make_pair, move
#include "detail/input/input_adapters.hpp"
#include "detail/exceptions.hpp" #include "detail/exceptions.hpp"
#include "detail/macro_scope.hpp" #include "detail/macro_scope.hpp"
#include "detail/value_t.hpp" #include "detail/value_t.hpp"
......
This diff is collapsed.
...@@ -9,11 +9,14 @@ ...@@ -9,11 +9,14 @@
#include <cstddef> // size_t, ptrdiff_t #include <cstddef> // size_t, ptrdiff_t
#include <cstdint> // uint8_t #include <cstdint> // uint8_t
#include <cstdio> // snprintf #include <cstdio> // snprintf
#include <iomanip> // setfill
#include <iterator> // next #include <iterator> // next
#include <limits> // numeric_limits #include <limits> // numeric_limits
#include <string> // string #include <string> // string
#include <sstream> // stringstream
#include <type_traits> // is_same #include <type_traits> // is_same
#include "detail/exceptions.hpp"
#include "detail/conversions/to_chars.hpp" #include "detail/conversions/to_chars.hpp"
#include "detail/macro_scope.hpp" #include "detail/macro_scope.hpp"
#include "detail/meta.hpp" #include "detail/meta.hpp"
......
This diff is collapsed.
...@@ -47,6 +47,7 @@ within a JSON document. It can be used with functions `at` and ...@@ -47,6 +47,7 @@ within a JSON document. It can be used with functions `at` and
@since version 2.0.0 @since version 2.0.0
*/ */
template<typename BasicJsonType>
class json_pointer; class json_pointer;
/*! /*!
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment