From ce2f3b821bae754d15c201e3d475f0170f1d26c8 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Mon, 29 Aug 2016 16:13:55 +1000 Subject: [PATCH] io: delete fd's copy constructor --- io.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/io.hpp b/io.hpp index 4a352757..5f034316 100644 --- a/io.hpp +++ b/io.hpp @@ -40,6 +40,10 @@ namespace util { struct fd { public: explicit fd (int); + + fd (const fd&) = delete; + fd (const fd&&); + fd (const char *path, int flags, mode_t mode = 0660); fd (const boost::filesystem::path&, int flags);