From 7f830a5f374e5111517ac050a361c1a2f9870fd3 Mon Sep 17 00:00:00 2001 From: Vivien Delmon Date: Fri, 22 Apr 2011 15:23:33 +0200 Subject: [PATCH] gcc 4.6 compatibility: * ptrdiff_t is in the std namespace --- segmentation/tree.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/segmentation/tree.hh b/segmentation/tree.hh index fa47763..2365cf0 100644 --- a/segmentation/tree.hh +++ b/segmentation/tree.hh @@ -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 { + class iterator_base : public stlport::bidirectional_iterator { #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(); -- 2.47.1