adobe / XMP-Toolkit-SDK

The XMP Toolkit allows you to integrate XMP functionality into your product or solution
BSD 3-Clause "New" or "Revised" License
205 stars 83 forks source link

template<class> class std::auto_ptr' is deprecated #45

Closed Jamaika1 closed 11 months ago

Jamaika1 commented 3 years ago
XMPScanner.cpp: In member function 'void XMPScanner::Scan(const void*, XMP_Int64, XMP_Int64)':
XMPScanner.cpp:1267:33: warning: 'template<class> class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations]
 1267 |                                 auto_ptr<PacketMachine> ap ( pm );
      |                                 ^~~~~~~~
In file included from c:\msys1200\include\c++\12.0.0\memory:76,
                 from c:\msys1200\x86_64-w64-mingw32\include\xmpfiles\source\formatsupport\xmpscanner.hpp:22,
                 from XMPScanner.cpp:27:
c:\msys1200\include\c++\12.0.0\bits\unique_ptr.h:56:28: note: declared here
   56 |   template<typename> class auto_ptr;
      |                            ^~~~~~~~
maupadhyay commented 11 months ago

This issue has been fixed and released as part of December 2023 Release