C++11 filesystem (VS2012)
Asked Answered
V

1

10

I am having a lot of trouble finding any documentation on the header included with vs2012. I see that it is mentioned here but they don't provide a link on how to use it. What I am really looking for is documentation for how to use it, with the visual studio implementation being preferred. Thanks

Verity answered 28/8, 2012 at 0:33 Comment(0)
T
21

The <filesystem> header is not part of C++11; it is a proposal for C++ TR2 based on the Boost.Filesystem library. Visual C++ 2012 includes an implementation of the proposed library.

See the MSDN documentation for the <filesystem> header and the C++ TR2 proposal on which the implementation is based (the latest TR2 proposal is N3335 from January, but I don't know what has changed or whether the Visual C++ 2012 implementation includes any of the most recent changes).

Triptolemus answered 28/8, 2012 at 0:36 Comment(3)
Thanks. I don't know why this was so hard to search for... I will accept as soon as I am allowed to.Verity
Note that it's based on Boost.FileSystem v2, which is no longer included in current Boost distributions (v3 has replaced it altogether). So, if one is going to use the Boost documentation, they'll need to use the Boost 1.49.0 docs at latest.Fascicle
I wish VC's compiler team was as dedicated as its library team. STL is a machine.Rafat

© 2022 - 2024 — McMap. All rights reserved.