https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59325
Jonathan Wakely changed:
What|Removed |Added
Status|WAITING |NEW
Keywords|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59325
--- Comment #8 from andysem at mail dot ru ---
(In reply to Jonathan Wakely from comment #6)
> (In reply to andysem from comment #2)
> > (In reply to Jonathan Wakely from comment #1)
> > > You can use a #pragma to disable -Wdeprecated locally
> >
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59325
--- Comment #7 from Jonathan Wakely ---
(In reply to andysem from comment #4)
> I just think that all these hoops could be avoided if libstdc++ was a little
> more friendly in this regard. After all, there's no harm in using e.g.
> auto_ptr in C+
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59325
Jonathan Wakely changed:
What|Removed |Added
Last reconfirmed||2020-10-20
Status|UNCONFIR
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59325
--- Comment #5 from Jonathan Wakely ---
--- a/libstdc++-v3/include/bits/c++config
+++ b/libstdc++-v3/include/bits/c++config
@@ -78,11 +78,13 @@
# define _GLIBCXX_USE_DEPRECATED 1
#endif
+#ifndef _GLIBCXX_DEPRECATED
#if defined(__DEPRECATED) &
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59325
--- Comment #4 from andysem at mail dot ru ---
(In reply to Jonathan Wakely from comment #3)
> Doing this before any other includes will work:
>
> #include
> #undef _GLIBCXX_DEPRECATED
> #define _GLIBCXX_DEPRECATED
>
> I'm not convinced we want
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59325
--- Comment #3 from Jonathan Wakely ---
Doing this before any other includes will work:
#include
#undef _GLIBCXX_DEPRECATED
#define _GLIBCXX_DEPRECATED
I'm not convinced we want to support this officially.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59325
--- Comment #2 from andysem at mail dot ru ---
(In reply to Jonathan Wakely from comment #1)
> You can use a #pragma to disable -Wdeprecated locally
But the legacy C++ is used in the library, which code I'd like to avoid
changing.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59325
--- Comment #1 from Jonathan Wakely ---
You can use a #pragma to disable -Wdeprecated locally