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

@@ -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)