diff options
-rw-r--r-- | FoundationEx/List.inl | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/FoundationEx/List.inl b/FoundationEx/List.inl index 14e340d..9ccb796 100644 --- a/FoundationEx/List.inl +++ b/FoundationEx/List.inl @@ -13,11 +13,8 @@ #include <stdlib.h> -// +-------------------------------------------------------------------+ - -void Print(const char* fmt, ...); +#include "Utils.h" -// +-------------------------------------------------------------------+ template <class T> List<T>::List(const List<T>& l) @@ -59,12 +56,12 @@ template <class T> bool List<T>::check(int& index) const { if (index < 0) { - Print("Bounds error in List(%08x) T=%s index=%d min=0\n", (int)this, T::TYPENAME(), index); + Print("Bounds error in List(%08p) T=%s index=%d min=0\n", this, T::TYPENAME(), index); index = 0; } else if (index >= items) { - Print("Bounds error in List(%08x) T=%s index=%d max=%d\n", (int)this, T::TYPENAME(), index, items-1); + Print("Bounds error in List(%08p) T=%s index=%d max=%d\n", this, T::TYPENAME(), index, items-1); index = items-1; } |