#include <filesystem> doesn't work with gcc-7 when -std=c++17
is specified.
#3203
Closed
1 of 2 tasks
Labels
confirmed
kind: bug
release item: 🐛 bug fix
solution: duplicate
the issue is a duplicate; refer to the linked issue instead
solution: proposed fix
a fix for the issue has been proposed and waits for confirmation
Milestone
What is the issue you have?
GCC 7 (on Ubuntu 18.04) doesn't have
<filesystem>
, instead, it has<experimental/filesystem>
with namespacestd::experimental::filesystem
. When-std=c++17
is specified on Ubuntu 18.04 with GCC-7, this library fails to compile, asjson/include/nlohmann/detail/conversions/from_json.hpp
Lines 22 to 24 in 825d323
doesn't work. The inclusion for
<filesystem>
requires more care with GCC.If you experience a compilation error: can you compile and run the unit tests?
The text was updated successfully, but these errors were encountered: