This repository contains Boost Cpp Filesystem snippets, even though C++17 has standarized
filesystem api and works the same as the Boost C++ one, C++ boost is compatible with
compilers not C++17 compliant. So if you wanna ensure your code compiles even with older toolchains,
then think on it, this is why you can not skip this learning road.
For Cpp nowadas there are no excuses to setup your environment in a painless manner, this is why
I recommend using vcpkg, which is what I use, with vcpkg install boost:x64-windows-static
it downloaded and built
boost libraries. Then I open the vcproject file and add the following inside the Globals section:
<PropertyGroup Label="Globals"> <-- Find this tag, then in that tag add the two VcpkgTriplet tags-->
............
<VcpkgTriplet Condition="'$(Platform)'=='Win32'">x86-windows-static</VcpkgTriplet>
<VcpkgTriplet Condition="'$(Platform)'=='x64'">x64-windows-static</VcpkgTriplet>
..........
This is how I set up my environment, I strongly encourage you to do the same, take a time reading about vcpkg
and enjoy modern Cpp made easy.
- Port to CMake