spamsink: (Default)
spamsink ([personal profile] spamsink) wrote in [personal profile] vak 2023-05-18 04:13 am (UTC)

Пользовался бы ты godbolt.org (или просто -Wall), то увидел бы, что компилятор успевает выдать
<source>:12:5: warning: ISO C++ requires field designators to be specified in declaration order; field 'e' will be initialized after field 'c' [-Wreorder-init-list]
    .c = 1,
    ^~~~~~
<source>:13:5: warning: ISO C++ requires field designators to be specified in declaration order; field 'c' will be initialized after field 'a' [-Wreorder-init-list]
    .a = 1,
    ^~~~~~


Короче говоря, "вы его неправильно держите".

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org