Re: Please help (Was: Bug#808537: jellyfish: FTBFS: error: 'template<class> class std::auto_ptr' is deprecated [-Werror=deprecated-declarations])
Hello,
On Wed, 2015-12-23 at 18:31 +0100, Andreas Tille wrote:
> I was hoping that Gert could provide any hint how he fixed #778005
> but he seems to be offline. Any hint how to deal with his?
I was indeed AFK and will be a for few more hours.
----- Forwarded message from Andreas Tille <andreas@an3as.eu> -----
>
> Date: Sun, 20 Dec 2015 17:46:54 +0100
> From: Andreas Tille <andreas@an3as.eu>
> To: 808537@bugs.debian.org
> Cc: Gert Wollny <gw.fossdev@gmail.com>
> Subject: Re: Bug#808537: jellyfish: FTBFS: error: 'template<class>
> class std::auto_ptr' is deprecated [-Werror=deprecated-declarations]
I'll take a look at the code later, but the problem is that when c++11
is enabled (with g++5 the default I think), then std::auto_ptr is
deprecated, hence there is a warning. But since someone decided to add
the -Werror=deprecated-declarations compile flag this warning is
propagated to an error.
One fix is to remove the compile flag, another one replace
std::auto_ptr with std::unique_ptr.
Best,
Gert
Reply to: