From b09fce84a40c0c806eac3a2de58d97ae69b167ce Mon Sep 17 00:00:00 2001 From: Alan Woodland Date: Mon, 16 May 2016 22:01:30 +0100 Subject: [PATCH] just use a forward declaration for C++ iterator types to fix enum errors --- Lib/java/std_list.i | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/java/std_list.i b/Lib/java/std_list.i index 35f0ecac8..0dde17371 100644 --- a/Lib/java/std_list.i +++ b/Lib/java/std_list.i @@ -20,8 +20,7 @@ namespace std { template class list { public: - // This typedef is a weird hack to make stuff work - typedef std::list::iterator iterator; + struct iterator; typedef size_t size_type; typedef T value_type; typedef T& reference;