我在“iterator_of_array_int.h”有这个错误:
#include "array_of_int.h"
#include <cstdlib>
namespace leonidandand {
class iterator_of_array_int
{
private:
std::size_t index;
// next line has error
array_of_int * ptr_to_arr;
friend class array_of_int;
};
}
“array_of_int.h”
#pragma once
#include <cstdlib>
#include "iterator_of_array_int.h"
namespace leonidandand {
class array_of_int {
public:
typedef iterator_of_array_int iterator;
iterator_of_array_int begin();
iterator_of_array_int end();
};
}
我包括“array_of_int.h”。怎么了???