class CConnection
{
//stuff
Inc::STATS EnableAutoMode(bool b = true); //default parameter value should be here
};
.........
Inc::STATS CConnection::EnableAutoMode(bool b)
{
if(b == true)
{
//and so on...
I suspect that the OP typed incorrectly into the forum. Always copy and paste. Don't try to retype the snips of code since you might end up writing the correct code even though the original code is still wrong.
Look at original code. is it this? if(b = true) or is it this? if(b == true)
In general, always post a complete example and copy and paste from your original. I could be wrong but I am just taking an educated guess here.