just use a forward declaration for C++ iterator types to fix enum errors
This commit is contained in:
parent
4a149f66fd
commit
b09fce84a4
1 changed files with 1 additions and 2 deletions
|
|
@ -20,8 +20,7 @@
|
||||||
namespace std {
|
namespace std {
|
||||||
template <typename T> class list {
|
template <typename T> class list {
|
||||||
public:
|
public:
|
||||||
// This typedef is a weird hack to make stuff work
|
struct iterator;
|
||||||
typedef std::list<T>::iterator iterator;
|
|
||||||
typedef size_t size_type;
|
typedef size_t size_type;
|
||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
typedef T& reference;
|
typedef T& reference;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue