Opened 12 years ago

Last modified 6 years ago

#536 closed defect

auto_ptr is deprecated — at Version 2

Reported by: mbernasocchi Owned by: strk
Priority: minor Milestone: GEOS Fund Me
Component: Default Version: 3.3.3
Severity: Annoyance Keywords: auto_ptr, cpp11
Cc:

Description (last modified by mloskot)

when croscompiling for android I get plenty of 'auto_ptr' is deprecated. here an example:

libtool: compile:  arm-linux-androideabi-g++ -DHAVE_CONFIG_H -I. -I../../../src/geom -I../../include -I../../include/geos -I../../../include -DGEOS_INLINE -pedantic -Wall -ansi -Wno-long-long -ffloat-store -DANDROID=ON -Wno-psabi -O2 -mthumb -std=gnu++0x -MT MultiLineString.lo -MD -MP -MF .deps/MultiLineString.Tpo -c ../../../src/geom/MultiLineString.cpp  -fPIC -DPIC -o .libs/MultiLineString.o
In file included from ../../../src/geom/LineString.cpp:32:
../../../include/geos/geom/GeometryFactory.h:210: warning: 'auto_ptr' is deprecated (declared at /home/marco/dev/necessitas/android-9-standalonetoolchain/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/include/c++/4.4.3/backward/auto_ptr.h:86)
../../../include/geos/geom/GeometryFactory.h:259: warning: 'auto_ptr' is deprecated (declared at /home/marco/dev/necessitas/android-9-standalonetoolchain/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/include/c++/4.4.3/backward/auto_ptr.h:86)
../../../include/geos/geom/GeometryFactory.h:307: warning: 'auto_ptr' is deprecated (declared at /home/marco/dev/necessitas/android-9-standalonetoolchain/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/include/c++/4.4.3/backward/auto_ptr.h:86)
In file included from ../../../src/geom/LineString.cpp:34:
../../../include/geos/geom/Point.h:168: warning: 'auto_ptr' is deprecated (declared at /home/marco/dev/necessitas/android-9-standalonetoolchain/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/include/c++/4.4.3/backward/auto_ptr.h:86)
../../../src/geom/LineString.cpp:97: warning: 'auto_ptr' is deprecated (declared at /home/marco/dev/necessitas/android-9-standalonetoolchain/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/include/c++/4.4.3/backward/auto_ptr.h:86)
mv -f .deps/Geometry.Tpo .deps/Geometry.Plo

here a pointer: http://stackoverflow.com/questions/2404115/is-auto-ptr-deprecated

Change History (2)

in reply to:  description comment:1 by mbernasocchi, 12 years ago

libtool: compile: arm-linux-androideabi-g++ -DHAVE_CONFIG_H -I. -I../../../src/geom -I../../include -I../../include/geos -I../../../include -DGEOS_INLINE -pedantic -Wall -ansi -Wno-long-long -ffloat-store -DANDROID=ON -Wno-psabi -O2 -mthumb -std=gnu++0x -MT MultiLineString?.lo -MD -MP -MF .deps/MultiLineString.Tpo -c ../../../src/geom/MultiLineString.cpp -fPIC -DPIC -o .libs/MultiLineString.o In file included from ../../../src/geom/LineString.cpp:32: ../../../include/geos/geom/GeometryFactory.h:210: warning: 'auto_ptr' is deprecated (declared at /home/marco/dev/necessitas/android-9-standalonetoolchain/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/include/c++/4.4.3/backward/auto_ptr.h:86) ../../../include/geos/geom/GeometryFactory.h:259: warning: 'auto_ptr' is deprecated (declared at /home/marco/dev/necessitas/android-9-standalonetoolchain/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/include/c++/4.4.3/backward/auto_ptr.h:86) ../../../include/geos/geom/GeometryFactory.h:307: warning: 'auto_ptr' is deprecated (declared at /home/marco/dev/necessitas/android-9-standalonetoolchain/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/include/c++/4.4.3/backward/auto_ptr.h:86) In file included from ../../../src/geom/LineString.cpp:34: ../../../include/geos/geom/Point.h:168: warning: 'auto_ptr' is deprecated (declared at /home/marco/dev/necessitas/android-9-standalonetoolchain/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/include/c++/4.4.3/backward/auto_ptr.h:86) ../../../src/geom/LineString.cpp:97: warning: 'auto_ptr' is deprecated (declared at /home/marco/dev/necessitas/android-9-standalonetoolchain/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/include/c++/4.4.3/backward/auto_ptr.h:86) mv -f .deps/Geometry.Tpo .deps/Geometry.Plo

trackfriendlier

comment:2 by mloskot, 7 years ago

Description: modified (diff)
Keywords: cpp11 added
Note: See TracTickets for help on using tickets.