------- Comment #4 from manu at gcc dot gnu dot org  2007-11-08 13:13 -------
This is my proposal.

"This header is deprecated and may be removed in the future.  Please, consider
using an equivalent, non-deprecated interface for the requested functionality. 
To disable this warning use -Wno-deprecated.  A list of valid replacements is
as follows: 
<sstream> is replaced by <basic_stringbuf>, <basic_istringstream>,
<basic_ostringstream>, <basic_stringstream>;  <strstream> is replaced by
<strstream>, <strstreambuf>, <istrstream>, <ostrstream>;  <unordered_set> is
replaced by <unordered_set>, <unordered_multiset>;  <ext/hash_set> is replaced
by <hash_set>, <hash_multiset>, <hash_map>, <hash_multimap>;  <unordered_map>
is replaced by <unordered_map>, <unordered_multimap>;  <functional> is replaced
by <bind>, <binder1st>, <binder2nd>;  <memory> is replaced by <unique_ptr>,
<auto_ptr>."

I just re-organized the information, not sure if it is actually correct. I
noticed that <strstream> is replaced by <strstream>. So how would you get a
warning there? The same happens with <unordered_set>. How can a header be
replaced with the a new header with the same name?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34015

Reply via email to