summaryrefslogtreecommitdiff
path: root/src/file.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-04-14 00:02:42 +0200
committerCarl Hetherington <cth@carlh.net>2022-05-05 21:46:30 +0200
commit00e10ea721796f660b3479eb6f862125c255dc88 (patch)
tree3ac7b8990abd31e90c2b4f7a198b83aed4f91fd6 /src/file.h
parent915991a1accee95cfe6341a286c6ecedf4f0012b (diff)
Add move constructor.
Diffstat (limited to 'src/file.h')
-rw-r--r--src/file.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/file.h b/src/file.h
index bedceada..26d0704a 100644
--- a/src/file.h
+++ b/src/file.h
@@ -52,6 +52,10 @@ public:
* @param mode mode flags, as for fopen(3)
*/
File(boost::filesystem::path, std::string mode);
+
+ File(File&& other);
+ File& operator=(File&& other);
+
~File();
File(File const&) = delete;