Opened 12 years ago

Closed 6 years ago

Last modified 6 years ago

#536 closed defect (fixed)

auto_ptr is deprecated

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 (4)

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

comment:3 by dbaston, 6 years ago

Resolution: fixed
Status: newclosed

Resolved in 50860b7/git

comment:4 by robe, 6 years ago

Milestone: GEOS FutureGEOS Fund Me

Milestone renamed

Note: See TracTickets for help on using tickets.