Commit 3eb1b2a7 authored by Niels's avatar Niels

Merge pull request #59 from dkopecek/master

Fix compilation of json_unit with GCC 5
parents 4c55ada0 ad6ad4ae
...@@ -13,7 +13,7 @@ clean: ...@@ -13,7 +13,7 @@ clean:
# build unit tests # build unit tests
json_unit: test/unit.cpp src/json.hpp test/catch.hpp json_unit: test/unit.cpp src/json.hpp test/catch.hpp
$(CXX) -std=c++11 $(CXXFLAGS) $(FLAGS) $(CPPFLAGS) -I src -I test -Dprivate=public $< $(LDFLAGS) -o $@ $(CXX) -std=c++11 $(CXXFLAGS) $(FLAGS) $(CPPFLAGS) -I src -I test $< $(LDFLAGS) -o $@
# create scanner with re2c # create scanner with re2c
re2c: src/json.hpp.re2c re2c: src/json.hpp.re2c
......
...@@ -10,9 +10,6 @@ ...@@ -10,9 +10,6 @@
#define CATCH_CONFIG_MAIN #define CATCH_CONFIG_MAIN
#include "catch.hpp" #include "catch.hpp"
#include "json.hpp"
using nlohmann::json;
#include <array> #include <array>
#include <deque> #include <deque>
#include <forward_list> #include <forward_list>
...@@ -24,6 +21,10 @@ using nlohmann::json; ...@@ -24,6 +21,10 @@ using nlohmann::json;
#include <unordered_set> #include <unordered_set>
#include <vector> #include <vector>
#define private public
#include "json.hpp"
using nlohmann::json;
TEST_CASE("constructors") TEST_CASE("constructors")
{ {
SECTION("create an empty value with a given type") SECTION("create an empty value with a given type")
......
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