/*Process.h*/
class Process {
public:
Process(ProcessID thirdParty_pid);
protected:
void createImpl();
private:
ProcessImpl * _impl;
};
/*ProcessImpl.h*/
class ProcessImpl {
public :
ProcessImpl(ProcessID thirdParty_pid);
}
Using PIMPL idiom now I amtrying to invoke ProcessImpl constructor in this way:
Process::Process(ldframework::ProcessID tpid):_impl(ldframework::ProcessImpl::ProcessImpl(tpid)) {
}
But I am getting following error error: cannot convert ProcessImpl to ProcessImpl* in initialization
pls help in resolving this error and also let me know wts the correct metrhod to invoke