I have the following snippet:
typedef char OR[12]; class COR { OR m_or; public: COR(const char* or) { strcpy(m_or, or); } COR(const COR& o) { strcpy(m_or, o.m_or); } const char* GetOR() const { return m_or; } #if 0
When I try to do this, I get the error message: error: there is no corresponding function to call std::map<COR, SomeStruct*, std::less<COR>, std::allocator<std::pair<const COR, SomeStruct*> > >::find(const char*&)
I do not want to use any method that involves comparing two "COR" objects. I will compare COR with const char *. Can you guys suggest a way to do this?
source share