From 50d3596b1c5351f07a7d77bd7d0fcab561884806 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Wed, 12 Jan 2005 20:51:12 +0000 Subject: [PATCH] fixes for build with new compiler --- lib/base/eptrlist.h | 38 +++++++++++++++++++------------------- lib/base/ringbuffer.h | 2 +- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/lib/base/eptrlist.h b/lib/base/eptrlist.h index ae61d78..3c21510 100644 --- a/lib/base/eptrlist.h +++ b/lib/base/eptrlist.h @@ -161,19 +161,19 @@ public: // Creates an vector and copys all elements to this vector // returns a pointer to this new vector ( the reserved memory must deletet from the receiver !! ) std::vector* v=new std::vector(); - v->reserve( size() ); + v->reserve( std::list::size() ); for ( std_list_T_iterator it( std::list::begin() ); it != std::list::end(); it++) v->push_back( **it ); return v; } - inline iterator insert_in_order( T* e ) - { - // added a new item to the list... in order - // returns a iterator to the new item - return insert( std::lower_bound( std::list::begin(), std::list::end(), e ), e ); - } +// inline iterator insert_in_order( T* e ) +// { +// // added a new item to the list... in order +// // returns a iterator to the new item +// return insert( std::lower_bound( std::list::begin(), std::list::end(), e ), e ); +// } }; @@ -392,7 +392,7 @@ inline void ePtrList::sort() { // Sorts all items in the list. // The type T must have a operator <. - std::list::sort(ePtrList::less()); + std::list::sort(typename ePtrList::less()); } /////////////////// ePtrList remove(T*) ///////////////////////// @@ -624,14 +624,14 @@ template ePtrList::operator bool() { // Returns a bool that contains true, when the list is NOT empty otherwise false - return !empty(); + return !std::list::empty(); } template bool ePtrList::operator!() { // Returns a bool that contains true, when the list is empty otherwise false - return empty(); + return std::list::empty(); } template @@ -791,19 +791,19 @@ public: // Creates an vector and copys all elements to this vector // returns a pointer to this new vector ( the reserved memory must deletet from the receiver !! ) std::vector* v=new std::vector(); - v->reserve( size() ); + v->reserve( std::list::size() ); for ( std_list_T_iterator it( std::list >::begin() ); it != std::list >::end(); it++) v->push_back( **it ); return v; } - inline iterator insert_in_order( T* e ) - { - // added a new item to the list... in order - // returns a iterator to the new item - return insert( std::lower_bound( std::list >::begin(), std::list >::end(), e ), e ); - } +// inline iterator insert_in_order( T* e ) +// { +// // added a new item to the list... in order +// // returns a iterator to the new item +// return insert( std::lower_bound( std::list >::begin(), std::list >::end(), e ), e ); +// } }; @@ -1255,14 +1255,14 @@ template eSmartPtrList::operator bool() { // Returns a bool that contains true, when the list is NOT empty otherwise false - return !empty(); + return !std::list::empty(); } template bool eSmartPtrList::operator!() { // Returns a bool that contains true, when the list is empty otherwise false - return empty(); + return std::list::empty(); } #endif // _E_PTRLIST diff --git a/lib/base/ringbuffer.h b/lib/base/ringbuffer.h index f2cd905..e9fc4d6 100644 --- a/lib/base/ringbuffer.h +++ b/lib/base/ringbuffer.h @@ -91,7 +91,7 @@ void queueRingBuffer::enqueue( const T &val ) // first check for potential overflow if( lastFilled->nextLink == lastFree ) { - eDebug("increase size %d", count); +// eDebug("increase size %d", count); link * newLink = new link( val ); newLink->prevLink = lastFilled; newLink->nextLink = lastFilled->nextLink; -- 2.7.4