Исправление batbko, (текущая версия) :
//header.h
namespace omg {
class Ololo {
public:
class PiwPiw {
};
const PiwPiw& piw(int a, const std::string& str);//at this point call some command to make profit
};
}//namespace omg
//implementation.cxx
#include "header.h"
using namespace std;
using namespace omg;
//Following 3 raws is profit
const Ololo::PiwPiw& Ololo::piw(int a, const string& str)
{
throw "Not Implemented";
}
Исходная версия batbko, :
//header.h
namespace omg {
class Ololo {
public:
class PiwPiw {
};
const PiwPiw& piw(int a, const std::string& str);//at this point call some command to make profit
};
}//namespace omg
//implementation.cxx
#include "header.h"
using namespace std;
using namespace omg;
//Following 3 raws is profit
const Ololo::PiwPiw& piw(int a, const string& str)
{
throw "Not Implemented";
}