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

optimized assignment operator for FieldVector<1>

[[Imported from SVN: r6272]]
parent 64c3f8f4
Branches
Tags
No related merge requests found
......@@ -151,7 +151,12 @@ namespace Dune {
/** \brief Constructor with a given scalar */
FieldVector (const K& k) : _data(k) {}
using Base::operator=;
//! Assignment operator for scalar
inline FieldVector& operator= (const K& k)
{
_data = k;
return *this;
}
//===== forward methods to container
size_type vec_size() const { return 1; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment