]> granicus.if.org Git - re2c/commitdiff
- Fix build for g++ >= 3.4
authorhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Sat, 9 Apr 2005 01:01:10 +0000 (01:01 +0000)
committerhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Sat, 9 Apr 2005 01:01:10 +0000 (01:01 +0000)
globals.h

index 0a610ef7c5062f4a960f90246e6ad2a816f6ccdd..4398c07d2eb926d8a86f9808f4b28aa7a829381a 100644 (file)
--- 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();
        }
 };