Wow, that's an interesting use indeed. You know, I didn't even know there was a comma operator until I was looking at how boost assign worked yesterday.
True, input validation can't be done with that method.
I just meant to show how what ramako was attempting to do could be done.
@ramako. If a non-integer value is entered then cin will fail and there will be no way to clear that condition. An infinite loop results. The method is therefore NOT recommended.