Как объявить конструктор B другом A? Я пробовал:
class A { private: A(); public: friend B::B(); }; class B { public: B(); };