Skip to content

Commit

Permalink
Remove copy/move constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
davschneller committed Aug 23, 2024
1 parent 6410851 commit ab86398
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions async/ModuleBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ class ModuleBase {
public:
virtual ~ModuleBase() = default;

// avoid copy and move operations, due to the constructor above

ModuleBase(const ModuleBase&) = delete;
ModuleBase(ModuleBase&&) = delete;

ModuleBase operator=(const ModuleBase&) = delete;
ModuleBase& operator=(ModuleBase&&) = delete;

/**
* Called at initialization. Is also called by the {@link Dispatcher}
* on MPI executors.
Expand Down

0 comments on commit ab86398

Please sign in to comment.