I have a class declared like this :
namespace nsp1
{
class A
{
public :
inline friend void DoSomething();
private :
A();
int a;
};
}
Like this, the function DoSomething() will be in the namespace nsp1.
Is there a way to declare this function to have it both inline friend and outside of the namespace?
Here is a solution: