Radzivilovsky Paul’s decision is correct (+1).
However, you should be aware that the new standard C ++ 0x will allow the syntax of your example if you provide a constructor with two parameters (and, possibly, if you provide a constructor with a list of initializers, but this is not useful here).
This feature is already available in GCC start v4.4 , if you use it, you can enable it by enabling C ++ 0x.
source
share