Don't use auto_ptr when compiler supports C++11. Replaced by unique_ptr.

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1213 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Jan Möbius
2015-01-26 10:01:26 +00:00
parent b4883edc3e
commit 85630a4a47
4 changed files with 37 additions and 6 deletions

View File

@@ -124,7 +124,12 @@ public:
bool bind( osg::GeometryPtr geo )
{
std::auto_ptr<mesh_t> obj(new mesh_t);
#if __cplusplus > 199711L or __GXX_EXPERIMENTAL_CXX0X__
std::unique_ptr<mesh_t> obj(new mesh_t);
#else
std::auto_ptr<mesh_t> obj(new mesh_t);
#endif
return (OpenMesh::Kernel_OSG::bind< mesh_t >( *obj, geo))
? (meshes_.push_back(obj.release()), true)