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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user