



Here's the line of code I'm having issues understanding.
void updateFilter(bool bRecalc = true);
We have a prototype here that has been placed in my main header file. What is the purpose of setting bRecalc within this declaration? I would expect this to look like:
void updateFilter(bool bRecalc);
Thanks for the help.
Yes, that sets the default behavior so updateFilter() does the same thing as updateFilter(true). There are restrictions when you do this with multiple arguments (the ones with defaults have to be at the end of the list).
See also:
http://www.cplusplus.com/forum.....eral/5098/
- Will
Most Users Ever Online: 152
Currently Online:
3 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Chaes: 56
Skyler: 48
StevieD: 46
Derek: 46
Frodson: 45
Peter: 43
TheSmile: 43
Nickolai: 43
clau_ste: 39
jeanlecode: 37
Member Stats:
Guest Posters: 2
Members: 784
Moderators: 1
Admins: 6
Forum Stats:
Groups: 13
Forums: 42
Topics: 850
Posts: 3372
Moderators: W Pirkle: 693