Commit 855f4936 authored by gsell's avatar gsell
Browse files

fix initialization of template class

parent 35f7a956
......@@ -94,7 +94,7 @@ TryCompressLHS(LField<T,Dim>& lf, A& rhs, Op op, const NDIndex<Dim>& domain)
// is for assignment.
if (c1 && c3 && c4)
T tmpval = T(0);
T tmpval{};
PETE_apply(op, tmpval, for_each(rhs, EvalFunctor_0()));
if (*lf.begin() == tmpval)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment