ASMHandler: use = delete

This commit is contained in:
Arne Morten Kvarving 2024-08-26 15:06:18 +02:00
parent 6cedcf6a16
commit cbf4958261

View File

@ -56,6 +56,12 @@ class ASMHandler {
delete it->second;
}
//! \brief No copying of this class
ASMHandler(const ASMHandler&) = delete;
//! \brief No copying of this class
ASMHandler& operator=(const ASMHandler&) = delete;
//! \brief A vectorial node value
typedef Dune::FieldVector<double,dim> NodeValue;
@ -227,11 +233,6 @@ class ASMHandler {
//! \brief The number of equations in the system
size_t maxeqn;
private:
//! \brief No copying of this class
ASMHandler(const ASMHandler&) {}
//! \brief No copying of this class
ASMHandler& operator=(const ASMHandler&) {}
};
}