Hi Mohit, Your code example did not work (reproduce the problem you are experiencing) on my system. So I added at the top: #include <ostream> #include <iterator> Then when I compiled it worked. Could you submit a complete, small compilable example that exhibits the problem you are experiencing? Thanks, --Eljay