From e134e249196fdc86eb7a87a109e9772c9fed82a8 Mon Sep 17 00:00:00 2001 From: Wolfgang Beck Date: Wed, 3 Feb 2010 13:21:08 +1000 Subject: Source update. --- src/shared/cplusplus/Control.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/shared/cplusplus/Control.cpp') diff --git a/src/shared/cplusplus/Control.cpp b/src/shared/cplusplus/Control.cpp index bc8cb2f877..3c719bbf9a 100644 --- a/src/shared/cplusplus/Control.cpp +++ b/src/shared/cplusplus/Control.cpp @@ -210,6 +210,16 @@ public: } // end of anonymous namespace +#ifdef ICHECK_BUILD +//Symbian compiler has some difficulties to understand the templates. +static void delete_array_entries(std::vector vt) +{ + std::vector::iterator it; + for (it = vt.begin(); it != vt.end(); ++it) { + delete *it; + } +} +#else template static void delete_array_entries(_Iterator first, _Iterator last) { @@ -220,6 +230,7 @@ static void delete_array_entries(_Iterator first, _Iterator last) template static void delete_array_entries(const _Array &a) { delete_array_entries(a.begin(), a.end()); } +#endif class Control::Data { -- cgit v1.2.1