View Single Post
  #3   Spotlight this post!  
Unread 21-10-2013, 10:00
nightpool's Avatar
nightpool nightpool is offline
robotRectifier
AKA: Evan
no team (formerly of CORE 2062)
Team Role: Alumni
 
Join Date: Oct 2011
Rookie Year: 2011
Location: Waukesha, WI
Posts: 81
nightpool is on a distinguished road
Re: Same initialization as declaration in constructor, why?

Its not a requirement, but strongly recommended, as giving them a different order will lead to very unintuitive behavior, as well as a warning from GCC. As Ryan said, no matter what you put in the initialization list, the members'll be initialized in the order they are declared up above.
__________________
Proud alum of CORE 2062.
www.core2062.com
Reply With Quote