We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c08382 commit f313e7fCopy full SHA for f313e7f
src/util/tempdir.h
@@ -19,14 +19,21 @@ std::string get_temporary_directory(const std::string &name_template);
19
class temp_dirt
20
{
21
public:
22
- std::string path;
+ explicit temp_dirt(const std::string &name_template);
23
+ ~temp_dirt();
24
+
25
+ temp_dirt(const temp_dirt &) = delete;
26
27
+ temp_dirt(temp_dirt &&other)
28
+ {
29
+ path.swap(other.path);
30
+ }
31
32
std::string operator()(const std::string &file);
33
34
void clear();
35
- explicit temp_dirt(const std::string &name_template);
- ~temp_dirt();
36
+ std::string path;
37
};
38
39
#endif // CPROVER_UTIL_TEMPDIR_H
0 commit comments