Afficher un message
Vieux 06/02/2008, 03h08   #3
Ian Collins
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Warning this will be initialized after that

Christopher wrote:
> What causes this kind of warning to occur? why is the compiler forcing
> some order of initialization in an initializer list?
> I frequently run into this when I am initializing a pointer and an int
> in a constructor's initializer list.


Class members are initialised in the order they are declared, not the
order they appear in initialiser lists.

--
Ian Collins.
  Réponse avec citation
 
Page generated in 0,04445 seconds with 9 queries