News for hackers. Stuff that matters.
Re:C++ Filesystem Technical Specification approved by ISO by euid on Saturday January 03, 2015 @04:22PM (#8832037)
You probably want something like pyfakefs[1], a reimplementation of Python's (old) filesystem modules for the purpose of testing.

My guess is that either you will have to write it, or you will have to convince a C++ developer that it is worth writing cppfakefs.

Otherwise, you can build a test_root_dir RAII object that creates a directory in /tmp and does the cleanup automatically in its destructor.

[1]: https://code.google.com/p/pyfakefs/

There are no comments on this comment yet.