From 7359ce14bec73a85aad0467693391036fea37cff Mon Sep 17 00:00:00 2001 From: helly Date: Sat, 9 Apr 2005 01:01:10 +0000 Subject: [PATCH] - Fix build for g++ >= 3.4 --- globals.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/globals.h b/globals.h index 0a610ef7..4398c07d 100644 --- a/globals.h +++ b/globals.h @@ -18,13 +18,13 @@ public: void append(const _Ty &val) { push_back(val); - sort(); - unique(); + std::list<_Ty>::sort(); + std::list<_Ty>::unique(); } bool contains(const _Ty &val) { - return std::find(begin(), end(), val) != end(); + return std::find(std::list<_Ty>::begin(), std::list<_Ty>::end(), val) != std::list<_Ty>::end(); } }; -- 2.50.1