Well, not sure what happened... I copied and pasted your code into a new cpp file, Vlad, and it works just fine. I checked my code in the original file and it was exactly the same, character for character, yet wouldn't compile.
Regardless, thanks very much for the help. Glad to be past this.