Skip to content

FieldVector<K,1>: Fix for operator=

The current implementation of FieldVector<K, 1>::operator= (const FieldVector<T, N>& other) attempts to access a private member of FieldVector<T, N>. This results in a compilation error for

FieldVector<double, 1> a = 1.0;
FieldVector<float, 1> b = 2.0;
a = b;

This MR fixes the issue.

Merge request reports

Loading