coord/base: actually set fill values in constructor

This commit is contained in:
Danny Robson 2018-04-11 18:22:25 +10:00
parent 4e558ce9a9
commit 2d801a1725

View File

@ -77,7 +77,7 @@ namespace util::coord {
base& operator= (const base<S,T,SelfT> &rhs)& = default;
base& operator= (const T t)&
{
for (auto v: *this)
for (auto &v: *this)
v = t;
return *this;
}