cogsys-tuebingen / cslibs_math

This library contains different math utility classes for e.g. multidimensional statistics and linear algebra.
BSD 3-Clause "New" or "Revised" License
0 stars 2 forks source link

Support for the error "array must be initialized with a brace-enclosed initializer" #5

Open VigneshS1993 opened 3 years ago

VigneshS1993 commented 3 years ago

Respected developers of the package While building the package I encountered the error "array must be initialized with a brace-enclosed initializer, array must be initialized with a brace-enclosed initializer errort error{0, 0}; " In the file cslibs_math/cslibs_math_3d/include/cslibs_math_3d/algorithms/bresenham.hpp:130:22:

Can you address this issue and let me know how this can be solved.. Can it be compiler issue ?

c-schulz commented 2 years ago

Could you try replacing error_t error_{0, 0}; in exactly that line by the following?

error_t error_{{0, 0}};

This error might depend on the compiler you are using or its version.