How should I fix this error? Should I use a const std::tuple<int, int, char>
instead?
constexpr auto [ Y_AxisLen, X_AxisLen, fillCharacter ] { 36, 168, ' ' };
This gives errors like:
error: structured binding declaration cannot be 'constexpr'
434 | constexpr auto [ Y_AxisLen, X_AxisLen, fillCharacter ] { 36, 168, ' ' };
error: invalid initializer for structured binding declaration
434 | constexpr auto [ Y_AxisLen, X_AxisLen, fillCharacter ] { 36, 168, ' ' };
Y_AxisLen
and X_AxisLen
should be of type int
and fillCharacter
should be a char
.