]> Creatis software - clitk.git/commitdiff
gcc 4.6 compatibility:
authorVivien Delmon <vivien.delmon@creatis.insa-lyon.fr>
Fri, 22 Apr 2011 13:23:33 +0000 (15:23 +0200)
committerVivien Delmon <vivien.delmon@creatis.insa-lyon.fr>
Fri, 22 Apr 2011 13:23:33 +0000 (15:23 +0200)
* ptrdiff_t is in the std namespace

segmentation/tree.hh

index fa4776376c5bb452c543966b41f790fadbfd0412..2365cf0e4e07897f13ee6ba10c9f5db2ec176795 100644 (file)
@@ -90,7 +90,7 @@ class tree {
 
       /// Base class for iterators, only pointers stored, no traversal logic.
 #ifdef __SGI_STL_PORT
-               class iterator_base : public stlport::bidirectional_iterator<T, ptrdiff_t> {
+               class iterator_base : public stlport::bidirectional_iterator<T, std::ptrdiff_t> {
 #else
                class iterator_base {
 #endif
@@ -99,7 +99,7 @@ class tree {
                                typedef T*                              pointer;
                                typedef T&                              reference;
                                typedef size_t                          size_type;
-                               typedef ptrdiff_t                       difference_type;
+                               typedef std::ptrdiff_t                       difference_type;
                                typedef std::bidirectional_iterator_tag iterator_category;
 
                                iterator_base();