Skip to content

Commit

Permalink
🐛 fix for #586
Browse files Browse the repository at this point in the history
Also added a Travis builder with -std=c++1z
  • Loading branch information
nlohmann committed May 20, 2017
1 parent 0f4131d commit 99cb095
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,16 @@ matrix:
sources: ['ubuntu-toolchain-r-test']
packages: g++-6

- os: linux
compiler: gcc
env:
- COMPILER=g++-6
- CXXFLAGS=-std=c++1z
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: g++-6

# Linux / Clang

- os: linux
Expand Down
2 changes: 1 addition & 1 deletion src/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3742,7 +3742,7 @@ class basic_json
#ifndef _MSC_VER // fix for issue #167 operator<< ambiguity under VS2015
and not std::is_same<ValueType, std::initializer_list<typename string_t::value_type>>::value
#endif
#if defined(_MSC_VER) && _MSC_VER >1900 && defined(_HAS_CXX17) && _HAS_CXX17 == 1 // fix for issue #464
#if (defined(__cplusplus) && __cplusplus == 201703L) || (defined(_MSC_VER) && _MSC_VER >1900 && defined(_HAS_CXX17) && _HAS_CXX17 == 1) // fix for issue #464
and not std::is_same<ValueType, typename std::string_view>::value
#endif
, int >::type = 0 >
Expand Down

0 comments on commit 99cb095

Please sign in to comment.