std::copy Depreciated?

This is a discussion on std::copy Depreciated? within the C++ Programming forums, part of the General Programming Boards category; Im using .net2005 with STLPort and it spits out tons of warning about copy being depreciated but doesnt mention a ...

  1. #1
    Registered User xds4lx's Avatar
    Join Date
    Nov 2001
    Posts
    630

    std::copy Depreciated?

    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

  2. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    7,340
    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 02:10 PM.

  3. #3
    Registered User xds4lx's Avatar
    Join Date
    Nov 2001
    Posts
    630
    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

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. strcpy depreciated?!?!?
    By FillYourBrain in forum C Programming
    Replies: 13
    Last Post: 07-18-2004, 04:10 PM
  2. Problems with std::copy()
    By Dragoon_42 in forum C++ Programming
    Replies: 4
    Last Post: 02-29-2004, 10:33 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21