Switch all checks for c++11 to support vs2015

This commit is contained in:
Jan Möbius
2015-11-25 13:55:19 +01:00
parent 1b3c350efb
commit f907bd9bd5
7 changed files with 14 additions and 14 deletions

View File

@@ -78,7 +78,7 @@ template<class Mesh>
DecimaterT<Mesh>::DecimaterT(Mesh& _mesh) :
BaseDecimaterT<Mesh>(_mesh),
mesh_(_mesh),
#if __cplusplus > 199711L || defined( __GXX_EXPERIMENTAL_CXX0X__ )
#if _MSC_VER >= 1900 || __cplusplus > 199711L || defined( __GXX_EXPERIMENTAL_CXX0X__ )
heap_(nullptr)
#else
heap_(NULL)
@@ -178,7 +178,7 @@ size_t DecimaterT<Mesh>::decimate(size_t _n_collapses) {
// initialize heap
HeapInterface HI(mesh_, priority_, heap_position_);
#if __cplusplus > 199711L || defined( __GXX_EXPERIMENTAL_CXX0X__ )
#if _MSC_VER >= 1900 || __cplusplus > 199711L || defined( __GXX_EXPERIMENTAL_CXX0X__ )
heap_ = std::unique_ptr<DeciHeap>(new DeciHeap(HI));
#else
heap_ = std::auto_ptr<DeciHeap>(new DeciHeap(HI));
@@ -279,7 +279,7 @@ size_t DecimaterT<Mesh>::decimate_to_faces(size_t _nv, size_t _nf) {
// initialize heap
HeapInterface HI(mesh_, priority_, heap_position_);
#if __cplusplus > 199711L || defined( __GXX_EXPERIMENTAL_CXX0X__ )
#if _MSC_VER >= 1900 || __cplusplus > 199711L || defined( __GXX_EXPERIMENTAL_CXX0X__ )
heap_ = std::unique_ptr<DeciHeap>(new DeciHeap(HI));
#else
heap_ = std::auto_ptr<DeciHeap>(new DeciHeap(HI));

View File

@@ -173,7 +173,7 @@ private: //------------------------------------------------------- private data
Mesh& mesh_;
// heap
#if __cplusplus > 199711L || defined( __GXX_EXPERIMENTAL_CXX0X__ )
#if _MSC_VER >= 1900 || __cplusplus > 199711L || defined( __GXX_EXPERIMENTAL_CXX0X__ )
std::unique_ptr<DeciHeap> heap_;
#else
std::auto_ptr<DeciHeap> heap_;