light-matrix icon indicating copy to clipboard operation
light-matrix copied to clipboard

error: expression cannot be used as a function

Open nitronoid opened this issue 6 years ago • 0 comments

https://github.com/lindahua/light-matrix/blob/8ce65d14b6027ee9e081dd12460bc714e9131d11/light_mat/matrix/matrix_layout.h#L393

dep/light-matrix/light_mat/matrix/matrix_layout.h: In member function ‘bool lmat::grid_layout<M, N>::is_percol_contiguous() const’:
dep/light-matrix/light_mat/matrix/matrix_layout.h:393:23: error: expression cannot be used as a function
    return m_rowstride() == 1;

The above line causes a compilation error, due to the trailing brackets. Removing them gets rid of the error.

nitronoid avatar Nov 06 '18 15:11 nitronoid