Deriving from RcfClient<>
Posted: Thu Jun 26, 2014 11:26 am
The following code compiles with RCF 2.0.0.2682 and 1.3.1, but does not compile with the current 2.0.1.100 version.
Error log (VS 2010):
I try to hide an implementation of a client and provide such header file:
and include implementation (and dependancy of RCF) only in .cpp file.
So, I need to derive my class from RcfClient<>.
Code: Select all
class Client : public RcfClient<MyService>
{
public:
Client(RCF::Endpoint const &Endpoint) : public RcfClient<MyService>(Endpoint) {}
};
Code: Select all
error C2512: 'RCF::I_RcfClient::I_RcfClient' : no appropriate default constructor available
Code: Select all
// SomeClass.h
class CClient;
class CSomeClass
{
//...
private:
std::vector<CClient*> v;
}
So, I need to derive my class from RcfClient<>.