From e5c02be1e023a6c56158f9d2331f98cca89f7e38 Mon Sep 17 00:00:00 2001 From: zvon Date: Thu, 3 Jan 2019 16:35:17 +0100 Subject: [PATCH] libc++ now officially supports filesystem now --- Makefile | 2 +- tv_rename.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 39a02fe..0c78f60 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ default: tv_rename # using libc++ because libstdc++ has a bug in regex that causes seg fault with long lines tv_rename: functions.o tv_rename.cpp - $(CXX) $(CFLAGS) -stdlib=libc++ -o tv_rename tv_rename.cpp functions.o -lcurl -lc++experimental + $(CXX) $(CFLAGS) -stdlib=libc++ -o tv_rename tv_rename.cpp functions.o -lcurl -lc++fs functions.o: functions.cpp $(CXX) $(CFLAGS) -stdlib=libc++ -c functions.cpp diff --git a/tv_rename.cpp b/tv_rename.cpp index 3d188fa..df5ef97 100644 --- a/tv_rename.cpp +++ b/tv_rename.cpp @@ -6,7 +6,7 @@ #include #include #include -#include +#include void singleSeason( const std::string &path, const std::string &show, int season, std::string url ); void multipleSeasons( const std::string &path, const std::string &show, const std::set seasons ); @@ -18,7 +18,7 @@ bool linux{false}; Curl c; int main(int argc, char** argv) { - namespace fs = std::experimental::filesystem; + namespace fs = std::filesystem; std::map languages{ {"en", "English"}, {"sv", "Svenska"}, {"no", "Norsk"}, {"da", "Dansk"}, {"fi", "Suomeksi"}, {"nl", "Nederlands"}, {"de", "Deutsch"}, {"it", "Italiano"}, {"es", "Español"}, {"fr", "Français"},