mirror of https://github.com/mosra/magnum.git
Browse Source
It was clashing with the default "initializer-list" constructor, which
is constexpr. This constructor is also explicit, which makes it
impossible to e.g. return Vector<1, T> from function without explicitly
specifying name , while for Vector<2, T> it works:
return {1, 2}; // works for Vector<2, int>
return {1}; // doesn't work for Vector<1, int>
vectorfields
1 changed files with 4 additions and 0 deletions
Loading…
Reference in new issue