Did you actually try to compile the program I attached? It works fine with gcc.


I stand corrected. It was working fine with gcc but failing on msvc 8.0 and msvc9.0.

Surya