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:
@@ -107,7 +107,13 @@ public:
|
||||
typedef Decimater::ModNormalFlippingT< mesh_t >::Handle mod_nf_t;
|
||||
|
||||
// object types
|
||||
#if __cplusplus > 199711L or __GXX_EXPERIMENTAL_CXX0X__
|
||||
typedef std::unique_ptr< decimater_t > decimater_o;
|
||||
#else
|
||||
typedef std::auto_ptr< decimater_t > decimater_o;
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
/// default constructor
|
||||
DecimaterViewerWidget(QWidget* _parent=0)
|
||||
|
||||
@@ -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