
27 Aug
2009
27 Aug
'09
8:04 a.m.
Hello. I would like to know what's wrong with this:
Object * create() { return new Object(); }
void addToScene(const std::string & name, Object * o)
{
//Store object in a std::multimap
obj = Object() addToScene("obj", obj)
Should the problem have anything to do with object lifetime? Or the segmentation fault is because of another issue? Thanks in advance.