Skip to content

Commit

Permalink
Remove copy/move/assignment operators
Browse files Browse the repository at this point in the history
  • Loading branch information
maxpkatz committed Jan 20, 2025
1 parent 3c4e5da commit b4ce305
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Source/driver/Castro_io.H
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ public:
std::cout.rdbuf(original_output);
}

// Remove copy/move constructors/assignment operators.
CoutRedirection (const CoutRedirection&) = delete;
CoutRedirection (CoutRedirection&&) = delete;
CoutRedirection& operator= (const CoutRedirection&) = delete;
CoutRedirection& operator= (CoutRedirection&&) = delete;

std::string getCapturedOutput () {
return captured_output.str();
}
Expand Down

0 comments on commit b4ce305

Please sign in to comment.