Skip to content
Snippets Groups Projects
Commit 4b44d798 authored by Jonathan Youett's avatar Jonathan Youett
Browse files

Make norm find correct field_type when using std::vector

parent 59aa6882
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
#ifndef DUNE_SOLVERS_NORMS_NORM_HH #ifndef DUNE_SOLVERS_NORMS_NORM_HH
#define DUNE_SOLVERS_NORMS_NORM_HH #define DUNE_SOLVERS_NORMS_NORM_HH
#include <dune/common/ftraits.hh>
namespace Dune { namespace Dune {
namespace Solvers { namespace Solvers {
...@@ -13,7 +15,7 @@ class Norm { ...@@ -13,7 +15,7 @@ class Norm {
public: public:
typedef V VectorType; typedef V VectorType;
typedef typename VectorType::field_type field_type; using field_type = typename Dune::FieldTraits<VectorType>::field_type;
/** \brief Destructor, doing nothing */ /** \brief Destructor, doing nothing */
virtual ~Norm() {}; virtual ~Norm() {};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment