Skip to content
Snippets Groups Projects
Commit 06e50d54 authored by Oliver Sander's avatar Oliver Sander
Browse files

remove static assertion -- with the new SFINAE trick it is redundant

[[Imported from SVN: r6683]]
parent a26a93c0
Branches
Tags
No related merge requests found
......@@ -139,7 +139,7 @@ namespace Dune {
template<class C>
FieldVector (const DenseVector<C> & x, typename Dune::enable_if<IsFieldVectorSizeCorrect<C,SIZE>::value>::type* dummy=0 )
{
dune_static_assert(((bool)IsFieldVectorSizeCorrect<C,SIZE>::value), "FieldVectors do not match in dimension!");
// do a run-time size check, for the case that x is not a FieldVector
assert(x.size() == SIZE);
for (size_type i = 0; i<SIZE; i++)
_data[i] = x[i];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment