1 // Copyright 2005 Ben Hutchings <ben@decadentplace.org.uk>.
2 // See the file "COPYING" for licence details.
4 #ifndef INC_AUTO_TEMP_FILE_HPP
5 #define INC_AUTO_TEMP_FILE_HPP
7 #include "auto_handle.hpp"
13 struct auto_temp_file_closer
15 void operator()(const std::string & name) const
21 struct auto_temp_file_factory
23 std::string operator()() const { return std::string(); }
25 typedef auto_handle<std::string, auto_temp_file_closer, auto_temp_file_factory>
28 #endif // !INC_AUTO_TEMP_FILE_HPP