Skip to content
Snippets Groups Projects
Commit 7369e156 authored by Elias Pipping's avatar Elias Pipping
Browse files

Fix GCC warning by initializing the base class

parent 1de4cb89
No related branches found
No related tags found
1 merge request!38Fix warnings
......@@ -78,7 +78,7 @@ namespace Dune {
//! Constructor making vector with identical coordinates
DynamicVector(const DynamicVector & x) :
_data(x._data)
Base(), _data(x._data)
{}
//! Move constructor
......
......@@ -115,7 +115,7 @@ namespace Dune {
}
//! Constructor making vector with identical coordinates
FieldVector (const FieldVector & x) : _data(x._data)
FieldVector (const FieldVector & x) : Base(), _data(x._data)
{}
/** \brief Construct from a std::initializer_list */
......@@ -252,7 +252,7 @@ namespace Dune {
//! copy constructor
FieldVector ( const FieldVector &other )
: _data( other._data )
: Base(), _data( other._data )
{}
//! Assignment operator for scalar
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment