I have the following that works fine with VS2010, but something tells me it's too good to be true standard compliant. This code is something of a refactoring project to simplify the end-user interface for the library that contains it. Please direct attention to line 11.
On a serious note - I've done something to break my GCC installation and didn't want to spend the time debugging it right now. (Code::Blocks always says that there is nothing to build??) I'm also ill-informed on how well GCC complies with the standard without the -pedantic flag (I think that's right). I'm also not sure how to set the pedantic flag on any of the various online compilers.
I guess it all boils down to: I thought that I could get a simple yes / no answer in a minute or two by posting this thread rather than trying to figure something out that might not be correct on my own.
:-\
*You can be sure that when I make a topic on this site it's the next resort if I'm not confident with finding an answer for myself.