just use a forward declaration for C++ iterator types to fix enum errors

This commit is contained in:
Alan Woodland 2016-05-16 22:01:30 +01:00
commit b09fce84a4

View file

@ -20,8 +20,7 @@
namespace std {
template <typename T> class list {
public:
// This typedef is a weird hack to make stuff work
typedef std::list<T>::iterator iterator;
struct iterator;
typedef size_t size_type;
typedef T value_type;
typedef T& reference;