Please note: We are aware of an issue affecting replies on the Arm Community forums, which may not be loading as expected.
We apologize for any inconvenience and appreciate your patience while we investigate and work to resolve the issue.
Thank you for your understanding.
Hi,
I am trying to initialize the structure like below in c++(-cpp11)struct{int a;int b;}structType;
structType xyz{.a=5, .b=7};
However the above code is giving me error "expected an expression".If I use the -c99 option, the other c++ code give
Does C++ 11 allow this?
EDIT
It appears not - until C++ 20:
https://en.cppreference.com/w/cpp/language/aggregate_initialization - see "Designated initializers"