Re: revisit - Error compiling QuantLib 3.10 in MSVC6 - 'back_inserter'

Posted by Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/revisit-Error-compiling-QuantLib-3-10-in-MSVC6-back-inserter-tp4036p4037.html

On 09/19/2005 03:54:45 PM, M L wrote:
> Hi Folks,
>
> This has been posted by someone else in the list, but I got the same  
> error and I do have vc60 sp6. any idea?
>
> c:\program files\quantlib\ql\math\primenumbers.cpp(50) : error C2039:  
> 'back_inserter' : is not a member of 'std'
> c:\program files\quantlib\ql\math\primenumbers.cpp(50) : error C2065:  
> 'back_inserter' : undeclared identifier

Mike,
        try adding

#include <iterator>

to the includes at the beginning of the file.

Later,
        Luigi


----------------------------------------

All parts should go together without forcing.  You must remember that
the parts you are reassembling were disassembled by you.  Therefore, if
you can't get them together again, there must be a reason.  By all
means, do not use a hammer.
-- IBM maintenance manual, 1925