Какой смысл g ++ -Wreorder?

Опция g ++ -Wall включает в себя -Wreorder. Что делает эта опция, описано ниже. Мне не очевидно, почему кого-то это волнует (особенно достаточно, чтобы включить это по умолчанию в -Wall).

-Wreorder (C++ only)
  Warn when the order of member initializers given in the code does not
  match the order in which they must be executed.  For instance:

    struct A {
      int i;
      int j;
      A(): j (0), i (1) { }
    };

  The compiler will rearrange the member initializers for i and j to
  match the declaration order of the members, emit-ting a warning to that
  effect.  This warning is enabled by -Wall.

Ответы на вопрос(5)

Ваш ответ на вопрос