Im using .net2005 with STLPort and it spits out tons of warning about copy being depreciated but doesnt mention a replacement. Any suggestions?
Im using .net2005 with STLPort and it spits out tons of warning about copy being depreciated but doesnt mention a replacement. Any suggestions?
"only two things are infinite, the universe and human stupidity, and im not sure about the former." - albert einstein
Show the code you are calling it with. std::copy is not deprecated by the C++ standard, but Microsoft marked many uses of standard functions as deprecated in their products to encourage users to use these tools safely and "properly". Your code might be passing a bad iterator to the function, or it might be perfectly valid and you will have to ignore the deprecated warning.
See Herb Sutter's discussion here: http://lists.boost.org/Archives/boost/2005/07/89697.php
Last edited by Daved; 02-09-2006 at 03:10 PM.
Im using copy to copy a subrange of a vector, using vector::iterator, both the start and end are both valid. Just the warning is anoying as hell.
"only two things are infinite, the universe and human stupidity, and im not sure about the former." - albert einstein