Must pre-delcare the structs friends so that they can access each other since they are private

This commit is contained in:
jdunn%netscape.com 1999-07-17 01:11:00 +00:00
Родитель 9af37c2ca9
Коммит 085c87f245
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -48,7 +48,10 @@ public:
#endif
private:
struct Node;
struct NodeArena;
friend struct Node; // needs access to struct NodeArena
friend struct NodeArena; // needs access to struct Node
struct Node {
void* mKey;
@ -79,9 +82,6 @@ private:
NodeArena mArena;
PtrBits mLevelZeroBit;
friend struct Node; // needs access to struct NodeArena
friend struct NodeArena; // needs access to struct Node
private:
// Helper functions
Node** SearchTree(void* aKey) const;