Smart pointer class predeclaration

Posted by tommyk on Stack Overflow See other posts from Stack Overflow or by tommyk
Published on 2010-05-11T09:10:01Z Indexed on 2010/05/11 9:14 UTC
Read the original article Hit count: 298

Filed under:

I have a header file:

class A
{
public:
    DeviceProxyPtr GetDeviceProxy(); 
};

DeviceProxyPtr is defined in a different header file like this:

typedef SmartPtrC<DeviceProxyC> DeviceProxyPtr;

I don't want to include DeviceProxyPtr definition header. If a return type was DeviceProxy* I could simply use predeclaration class DeviceProxy. Is there any way to do the same with my smart pointer class?

© Stack Overflow or respective owner

Related posts about c++