Make the allocator in CGAL::vector not static

This commit is contained in:
Andreas Fabri 2016-11-02 17:47:19 +01:00
parent ee37a9dd85
commit fe09323aa7
1 changed files with 1 additions and 10 deletions

View File

@ -174,11 +174,7 @@ public:
typedef std::reverse_iterator<const_iterator> const_reverse_iterator;
protected:
#ifndef _MSC_VER
// Somehow the static initialization does not work correctly for MSVC
// ---> strange linker errors
static
#endif // _MSC_VER
Allocator alloc;
iterator start_;
@ -520,11 +516,6 @@ protected:
}
}; // class vector
#ifndef _MSC_VER
// init static member allocator object
template <class T, class Alloc>
Alloc vector< T, Alloc>::alloc = Alloc();
#endif // _MSC_VER
template <class T, class Alloc>