blitzpp / blitz

Blitz++ Multi-Dimensional Array Library for C++
https://github.com/blitzpp/blitz/wiki
Other
402 stars 83 forks source link

StridedDomain has no empty constructor #158

Closed roshansamuel closed 4 years ago

roshansamuel commented 4 years ago

When using StridedDomain in Blitz, we cannot declare it as a variable like

blitz::StridedDomain<3> strideView;

The above code gives me a compile-time error. However, no such problem exists with the below code:

blitz::RectDomain<3> blockView;

This is because in blitz/array/domain.h, there is an empty constructor for RectDomain, but not for StridedDomain. Adding an empty constructor here eliminates the compile-time error for me.

slayoo commented 4 years ago

Thank you for reporting it. Could you please submit a pull request with a test routine?