VS2005 VS2010 error C2039: back_inserter : is not a member of std

需要#include <iterator>

You probably forgot #include <iterator> in some of your files. That’s where things like back_insert_iterator are declared.

In the past, you could get away with forgetting that header file, since many of the other standard headers also included it. VS2010 reorganized the headers for its library implementation to be more standards compliant. As a result, it’s much less forgiving of missing headers, and <iterator> is a commonly overlooked one.

你可能感兴趣的:(c,iterator,insert,library,2010,Standards)