Tloz / libspu

A lib for small project. When you don't want to reinvent the wheel each time and don't want to use a framework
The Unlicense
0 stars 0 forks source link

It is possible to declare an TDArray with one of it's dimension being zero #4

Closed Tloz closed 3 years ago

Tloz commented 3 years ago

Describe the bug There is no warning at compile time when you construct a TDArray with 0 being one of the first two params, therefore,

To Reproduce Steps to reproduce the behavior:

  1. declare a TDArray with a 0: TDArray test(0,1) or TDArray test(2,0) or TDArray test(0,0).

Expected behavior This should raise an exception

Desktop (please complete the following information):