Skip to content
Snippets Groups Projects
Commit 7bb6c994 authored by Christian Engwer's avatar Christian Engwer
Browse files

std::array doesn't have a method assign(t), this was usd in tr1. C++0x

preferes fill(t)

[[Imported from SVN: r6170]]
parent c21c1873
No related branches found
No related tags found
No related merge requests found
......@@ -75,8 +75,14 @@ namespace Dune
return (*this);
}
//! \brief Assign value to all entries
void assign(const T& t)
//! \brief Assign value to all entries (according to C++0x the fill method is to be prefered)
void assign(const T& t) DUNE_DEPRECATED
{
fill(t);
}
//! \brief Assign value to all entries (according to C++0x the fill method is to be prefered)
void fill(const T& t)
{
for (int i=0; i<N; i++) a[i]=t;
}
......
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