[RESOLVED] Initialisation Lists
Hi, was just going through my uni notes and found a question I can't find the answer to.
What is the difference between the following?
Code:
TextBox (const string &text, const Vector2f &position, bool visible) :
_text(text), _position(position), _visible(visible) {}
And
Code:
TextBox (const string &text, const Vector2f &position, bool visible) :
_position(position), _text(text), _visible(visible) {}
does it actually make a difference?
Re: [RESOLVED] Initialisation Lists
Re: [RESOLVED] Initialisation Lists
If you open up your compiler then you may find the difference in the orders of variable initialization and nothing more than writing a+b in place of b+a.