#include <iostream>
class B
{
public:
friend std::ostream& operator<< (std::ostream& os, const& B b) //No Const for iostream
{
os << "B's properties: " [ << properties];
return os;
}
...
}
//friend better be inside class, in case of LINK error
网友评论