Skip to content
Snippets Groups Projects
Commit 457cf837 authored by Carsten Gräser's avatar Carsten Gräser
Browse files

Make default constructors of DenseVector and FieldVector constexpr

Otherwise FieldVector is not a literal type and
calling its size() method is not a const-expression
although size() itself is declared as constexpr.
parent c1177be5
No related branches found
No related tags found
No related merge requests found
......@@ -244,7 +244,7 @@ namespace Dune {
protected:
// construction allowed to derived classes only
DenseVector () {}
DUNE_CONSTEXPR DenseVector () {}
public:
//===== type definitions and constants
......
......@@ -105,7 +105,7 @@ namespace Dune {
typedef typename Base::value_type value_type;
//! Constructor making default-initialized vector
FieldVector()
DUNE_CONSTEXPR FieldVector()
: _data{}
{}
......
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