I have been playing around with Docker and using it to access the latest features of GCC's libstd++
My docker file using is available here - it grabs the latest official GCC docker image
And the example it is trying to compile is
#include <iostream>
#include <filesystem>
namespace fs = std::filesystem;
int main()
{
std::cout << "Current path is " << fs::current_path() << '\n';
}
The compiler error I get is
Step 4/5 : RUN g++ -o hello_world main.cpp -lstdc++fs
---> Running in 3