зеркало из https://github.com/mozilla/pjs.git
Must pre-delcare the structs friends so that they can access each other since they are private
This commit is contained in:
Родитель
9af37c2ca9
Коммит
085c87f245
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче