io: delete fd's copy constructor

This commit is contained in:
Danny Robson 2016-08-29 16:13:55 +10:00
parent 3d5aff0f30
commit ce2f3b821b

4
io.hpp
View File

@ -40,6 +40,10 @@ namespace util {
struct fd { struct fd {
public: public:
explicit fd (int); explicit fd (int);
fd (const fd&) = delete;
fd (const fd&&);
fd (const char *path, int flags, mode_t mode = 0660); fd (const char *path, int flags, mode_t mode = 0660);
fd (const boost::filesystem::path&, int flags); fd (const boost::filesystem::path&, int flags);