I have a problem with structs and const members:
struct foo
{
const int16 a;
const int16 n;
};
foo foobar = {1, 2};
With C this works without warnings, but with C++ I get the following warning (C2000 compiler TI v6.1.1):
warning #370-D: class "foo" defines no constructor to initialize the following:
const member "foo::a"
const member "foo::n"
Is there a way to get rid of this warning because this should be valid code, or?