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).
Most Users Ever Online: 152
Currently Browsing this Page:
Guest Posters: 1
Newest Members:Jas, Rowan, sojourn, fabhenr, rg1, Niklas, Wutru, Tim Campbell, Danny Jonel, Valentin
Moderators: W Pirkle: 573
Administrators: Tom: 74, JD Young: 80, Will Pirkle: 0, W Pirkle: 573, VariableCook: 3