Skip to content
Snippets Groups Projects
Commit 6f832fd6 authored by Andreas Dedner's avatar Andreas Dedner
Browse files

struct std::array<float, 2ul>’ has no member named fill - there is a std::fill...

[[Imported from SVN: r6175]]
parent 54bab424
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@ namespace Dune {
//! Constructor making vector with identical coordinates
explicit FieldVector (const K& t)
{
_data.fill(t);
fill(t);
}
//! Constructor making vector with identical coordinates
......@@ -84,6 +84,11 @@ namespace Dune {
size_type vec_size() const { return _data.size(); }
K & vec_access(size_type i) { return _data[i]; }
const K & vec_access(size_type i) const { return _data[i]; }
private:
void fill(const K& t)
{
for (int i=0; i<SIZE; i++) _data[i]=t;
}
};
/** \brief Read a FieldVector from an input stream
......
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