# HG changeset patch # User David Demelier # Date 1503731457 -7200 # Node ID 0a4a246d765b4910fbf896c41f92c5bbc58ffd74 # Parent 385ba70b93e3964eeef4bcf920dafb3e9c3c0220 Common: fix temporarily json diff -r 385ba70b93e3 -r 0a4a246d765b extern/json/json.hpp --- a/extern/json/json.hpp Sat Sep 02 11:24:42 2017 +0200 +++ b/extern/json/json.hpp Sat Aug 26 09:10:57 2017 +0200 @@ -6460,12 +6460,17 @@ { // assertion to check that the iterator range is indeed contiguous, // see http://stackoverflow.com/a/35008842/266378 for more discussion + + // Disable the assert because it triggers a bug in gcc7/glibc + // https://github.com/nlohmann/json/issues/705 +#if 0 assert(std::accumulate(first, last, std::pair(true, 0), [&first](std::pair res, decltype(*first) val) { res.first &= (val == *(std::next(std::addressof(*first), res.second++))); return res; }).first); +#endif // assertion to check that each element is 1 byte long static_assert(sizeof(typename std::iterator_traits::value_type) == 1,