Very simple codes located in the same file 'foo.h':
class Xface { public: uint32_t m_tick; Xface(uint32_t tk) { m_tick=tk; } } std::map<uint32_t, Xface*> m; Xface* tmp; tmp = new Xface(100); **
Error : expected constructor, destructor, or type conversion before the '=' token for each assignment.
source share