Тут дело не в дружественности.
Надо сделать предварительное объявление класса connections
в connection.h:
C++ |
1
2
3
4
5
6
7
8
| #include <iostream>
#include <list>
using namespace std;
class connections; //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
class connection
{
public:
..... |
|