mirror of
https://git.mirrors.martin98.com/https://github.com/gulrak/filesystem
synced 2025-08-15 00:36:03 +08:00
Updated readme.
This commit is contained in:
parent
b86f941c67
commit
22da1c7698
@ -122,7 +122,11 @@ using fstream = ghc::filesystem::fstream;
|
|||||||
Now you have e.g. `fs::ofstream out(somePath);` and it is either the wrapper or
|
Now you have e.g. `fs::ofstream out(somePath);` and it is either the wrapper or
|
||||||
the C++17 `std::ofstream`.
|
the C++17 `std::ofstream`.
|
||||||
|
|
||||||
Be aware, as a header-only library, it is not hiding the fact, that it
|
Note, that on MSVC this detection only works starting from version 15.7 on and when setting
|
||||||
|
the `/Zc:__cplusplus` compile switch, as the compiler allways reports `199711L`
|
||||||
|
without that switch ([see](https://blogs.msdn.microsoft.com/vcblog/2018/04/09/msvc-now-correctly-reports-__cplusplus/)).
|
||||||
|
|
||||||
|
Be aware too, as a header-only library, it is not hiding the fact, that it
|
||||||
uses system includes, so they "pollute" your global namespace.
|
uses system includes, so they "pollute" your global namespace.
|
||||||
|
|
||||||
There is a version macro `GHC_FILESYSTEM_VERSION` defined in case future changes
|
There is a version macro `GHC_FILESYSTEM_VERSION` defined in case future changes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user