add explicit copy-constructors

implicitly generated copy constructors are deprecated in C++11,
if the class already has an assignment operator.

quells warnings with modern gcc/clang.
This commit is contained in:
Arne Morten Kvarving 2020-09-01 15:24:33 +02:00
parent acad356e2d
commit 44f29eb4f7
2 changed files with 4 additions and 0 deletions

View File

@ -34,6 +34,8 @@ namespace Opm {
TableColumn();
explicit TableColumn( const ColumnSchema& schema );
TableColumn(const TableColumn& c2) { *this = c2; }
static TableColumn serializeObject();
size_t size( ) const;

View File

@ -69,6 +69,8 @@ namespace Opm {
explicit TableManager( const Deck& deck );
TableManager() = default;
TableManager(const TableManager& t2) { *this = t2; }
static TableManager serializeObject();
TableManager& operator=(const TableManager& data);