use <experimental/memory_resource> instead of <experimental/filesystem> to check for libstdc++ 6.1
std::invoke()