I have the following code.
#include <set>
What under VS2005 is used for compilation. However, using VS2010, I get the following error:
Error 1 error C3892: '_Next': you cannot assign a variable that is const c: \ program files \ microsoft visual studio 10.0 \ vc \ include \ algorithm
If I make the container a vector, everything will be fine.
I guess something has changed in the standard that I don't know about, can someone shed some light on why this is no longer working?
set stl visual-studio-2010 visual-studio-2005
Rich
source share