default xenial g++ compiler gives warnings about deprecated use of std::auto_ptr in this package.

Bug #1654458 reported by Carlo Wood
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libxml++2.6 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Default xenial install leaves me with a flood of the following when trying to compile my application, using libxml++2.6:

In file included from /usr/include/libxml++-2.6/libxml++/libxml++.h:54:0,
[...snip...]
/usr/include/libxml++-2.6/libxml++/parsers/textreader.h:260:10: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
     std::auto_ptr<PropertyReader> propertyreader;

as well as similar warnings about std::auto_ptr elsewhere in libxml++ headers.

The work around is to ignore the warnings or turn them off, but that is not
what I should have to do (I need to have warnings turned on, as a developer).

Regards,
Carlo

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: libxml++2.6-dev 2.40.1-1
ProcVersionSignature: Ubuntu 4.4.0-57.78-generic 4.4.35
Uname: Linux 4.4.0-57-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia_drm nvidia_modeset nvidia
ApportVersion: 2.20.1-0ubuntu2.4
Architecture: amd64
CurrentDesktop: KDE
Date: Fri Jan 6 02:44:54 2017
InstallationDate: Installed on 2016-01-11 (360 days ago)
InstallationMedia: Kubuntu 14.04.3 LTS "Trusty Tahr" - Beta amd64 (20150805)
SourcePackage: libxml++2.6
UpgradeStatus: Upgraded to xenial on 2016-10-29 (68 days ago)

Revision history for this message
Carlo Wood (carlo-alinoe) wrote :
Revision history for this message
Murray Cumming (murrayc) wrote :
Revision history for this message
Carlo Wood (carlo-alinoe) wrote :

@Murray Thank you for your comment. I could not find any package for ubuntu that has this fixed. As it is an ABI breakage, as I understand, any project that wants to use C++11 standard (let alone C++17) will want to immediately start to demand and link with the new libxml++; so it's a problem that there isn't a package in ubuntu for that in 2017. Or am I missing something?

summary: - default trusty g++ compiler gives warnings about deprecated use of
+ default xenial g++ compiler gives warnings about deprecated use of
std::auto_ptr in this package.
description: updated
Revision history for this message
Carlo Wood (carlo-alinoe) wrote :

This still wasn't addressed in 2019...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.