diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-02-07 19:49:45 -0800 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-02-07 19:49:45 -0800 |
commit | f6a91ce07b382dd79c1e42dbc84e2694d83cfc01 (patch) | |
tree | e990bcb46c3b951795a8b309f6015580264dc577 /src/io | |
parent | 60e58ef85ed70eab353d3684169f6bc8d21ab0d1 (diff) | |
download | tmwa-f6a91ce07b382dd79c1e42dbc84e2694d83cfc01.tar.gz tmwa-f6a91ce07b382dd79c1e42dbc84e2694d83cfc01.tar.bz2 tmwa-f6a91ce07b382dd79c1e42dbc84e2694d83cfc01.tar.xz tmwa-f6a91ce07b382dd79c1e42dbc84e2694d83cfc01.zip |
Explicitly delete more assignment operators
Diffstat (limited to 'src/io')
-rw-r--r-- | src/io/line.hpp | 2 | ||||
-rw-r--r-- | src/io/read.hpp | 1 | ||||
-rw-r--r-- | src/io/write.hpp | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/src/io/line.hpp b/src/io/line.hpp index 78e1d25..00f0a11 100644 --- a/src/io/line.hpp +++ b/src/io/line.hpp @@ -67,6 +67,7 @@ namespace io explicit LineReader(ZString name); LineReader(LineReader&&) = delete; + LineReader& operator = (LineReader&&) = delete; // needed for unit tests LineReader(ZString name, FD fd); @@ -81,6 +82,7 @@ namespace io explicit LineCharReader(ZString name); LineCharReader(LineCharReader&&) = delete; + LineCharReader& operator = (LineCharReader&&) = delete; LineCharReader(ZString name, FD fd); bool get(LineChar& c); diff --git a/src/io/read.hpp b/src/io/read.hpp index 14283c5..4830fa4 100644 --- a/src/io/read.hpp +++ b/src/io/read.hpp @@ -38,6 +38,7 @@ namespace io ReadFile(FD fd); explicit ReadFile(ZString name); + ReadFile& operator = (ReadFile&&) = delete; ReadFile(ReadFile&&) = delete; ~ReadFile(); diff --git a/src/io/write.hpp b/src/io/write.hpp index a52c176..0a238c0 100644 --- a/src/io/write.hpp +++ b/src/io/write.hpp @@ -43,6 +43,7 @@ namespace io explicit WriteFile(ZString name, bool linebuffered=false); WriteFile(WriteFile&&) = delete; + WriteFile& operator = (WriteFile&&) = delete; ~WriteFile(); void put(char); |