Im using .net2005 with STLPort and it spits out tons of warning about copy being depreciated but doesnt mention a replacement. Any suggestions?
Printable View
Im using .net2005 with STLPort and it spits out tons of warning about copy being depreciated but doesnt mention a replacement. Any suggestions?
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
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.