You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some test cases, there are some member initializations like this:
MQTTAsync_successData data = {
.token = MESSAGE_ID,
};
This feature is called designated initializers. It is an addition to C99 but left out of C++11. According to The C++ Programming Language, 4th edition, section 44.3.3.2 (C Features Not Adopted by C++):
A few additions to C99 (compared with C89) were deliberately not adopted in C++:
[1] Variable-length arrays (VLAs); use vector or some form of dynamic array
[2] Designated initializers; use constructors
The C11 grammar has the designated initializers [ISO/IEC 9899:2011 N1570 Committee Draft - April 12, 2011]
In some test cases, there are some member initializations like this:
This feature is called designated initializers. It is an addition to C99 but left out of C++11. According to The C++ Programming Language, 4th edition, section 44.3.3.2 (C Features Not Adopted by C++):
The C11 grammar has the designated initializers [ISO/IEC 9899:2011 N1570 Committee Draft - April 12, 2011]
6.7.9 Initialization
However, the C++11 grammar does not have designated initializers [ISO/IEC 14882:2011 N3690 Committee Draft - May 15, 2013]
8.5 Initializers
The text was updated successfully, but these errors were encountered: