I\'m writing a function in C++ which creates a temporary directory. Such function should be as most portable as possible, e.g. it should work under linux, mac and win32 envi
Version 3 of Boost Filesystem Library provides function unique_path() for generating a path name suitable for creating a temporary file or directory.
unique_path()
using namespace boost::filesystem; path ph = unique_path(); create_directories(ph);