i am getting the below error when i try to compile the following code below. please suggest a good fix for the issue'.
./DataSecurity.h:60: error: template argument 1 is invalid ./DataSecurity.h:60: error: template argument 2 is invalid ./DataSecurity.h:60: error: expected unqualified-id before â>â token.
template<typename E, typename C = std::basic_string<E> >
struct CDsTableRec {
typedef C CStr;
typedef Ids::Type::CCountedPointer<CDsTableRec> CPtr;
CStr m_table;
CStr m_alias;
CStr m_prefix;
CDsTableRec(const CStr& t, const CStr& a, const CStr& p) : m_table(t), m_alias(a), m_prefix(p) {}
CDsTableRec(const CStr& t) : m_table(t) {}
CDsTableRec() {}
CStr str() const {
return m_prefix + (m_alias.size() ? m_alias : m_table);
}
};
typedef std::deque<CDsTableRec::CPtr> > CTableList;
--- this line gives error
CCountedPointer
is also a template
Ids
and Type
are namespaces