mirror of https://github.com/mosra/magnum.git
Browse Source
C++ allows creating arrays with initializer lists shorter than array
length, but for vectors and matrices it will be error prone and hard to
debug. Removed deleted constructor, as it is now catched with
static_assert as well. Also this was possible before (and wasn't catched
with the deleted constructor), now isn't:
Matrix<2, int> a(1, 2);
vectorfields
4 changed files with 7 additions and 14 deletions
Loading…
Reference in new issue