Error: /home/Dev/Test.cpp:1654: error: no matching function for call to 'xyz::xml::Sections::Sections(xyz::xml::Sections)' /home/Dev/include/Test.h:35: note: candidates are: xyz::xml::Sections::Sections(xyz::xml::Sections::AccessType, const wchar_t*, const wchar_t*, const wchar_t*) Test.h class Sections : public Policy { ... .... .... .... typedef enum { eReadWrite = 1, eReadonly = 2 } AccessType; Sections(AccessType access = eReadWrite, const wchar_t* wszTagname = Tags::wszPolicyTagname, const wchar_t* wszSchemaVersion = m_wszParserVersion, const wchar_t* wszNamespace = Tags::wszAvpSectionsNamespaceURI) : InheritedBase(wszTagname, wszSchemaVersion, wszNamespace), m_wstrParserVersion(m_wszParserVersion), m_ulIndex(0) { // If a read-only document is specified, adjust the namespace // & schema version to the RoAvpSections schema. if (access == eReadonly) { SetNamespace(Tags::wszRoAvpSectionsNamespaceURI); } } ........ ........ ......... } Test.cpp Sections& policy = dynamic_cast<Sections&>(pAgentInfoResponse->GetContent().AddPolicy(Sections(Sections::eReadonly)));