About Store Forum Documentation Contact
Donations:
140$/mo



Post Reply 
Memx not accessible
Author Message
PsychoBoy Offline
Member

Post: #1
Memx not accessible
Hey all, it was planned that Memx methods are not accessible ?

For example I need to check what was the last added object:
Code:
Object *c = &ObjContainer.last();

Error occurs:
Error 1 error C2247: 'EE::Memx<TYPE>::last' not accessible because 'EE::Game::ObjMemx<TYPE>' uses 'private' to inherit from 'EE::Memx<TYPE>'

If so, any other way to do that?

E: Sorry wrong section :F
(This post was last modified: 02-22-2012 05:29 AM by PsychoBoy.)
02-22-2012 05:26 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Memx not accessible
you should not rely on last element, when adding objects you should remember their pointer that is returned by World.objCreateNear
02-22-2012 11:14 AM
Find all posts by this user Quote this message in a reply
PsychoBoy Offline
Member

Post: #3
RE: Memx not accessible
Yes, already made it this way but I was wondering if there is other way, ty for clearing this out
(This post was last modified: 02-22-2012 11:33 AM by PsychoBoy.)
02-22-2012 11:32 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply