File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -67,16 +67,6 @@ std::optional<TargetFile> TargetFile::create(std::string_view target,
67
67
return std::nullopt;
68
68
}
69
69
70
- TargetFile& TargetFile::operator =(TargetFile&& other) {
71
- if (this != &other) {
72
- commit ();
73
- workingPath = std::move (other.workingPath );
74
- targetPath = std::move (other.targetPath );
75
- out = std::move (other.out );
76
- }
77
- return *this ;
78
- }
79
-
80
70
void TargetFile::commit () {
81
71
if (out.is_open ()) {
82
72
out.close ();
Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ class TargetFile {
24
24
~TargetFile () { commit (); }
25
25
26
26
TargetFile (TargetFile&& other) = default ;
27
- TargetFile& operator =(TargetFile&& other);
27
+ // move assignment deleted as non-trivial and not needed
28
+ TargetFile& operator =(TargetFile&& other) = delete ;
28
29
29
30
template <typename T>
30
31
TargetFile& operator <<(T&& value) {
You can’t perform that action at this time.
0 commit comments