Is there any kind of automatic pointer, similar to auto_ptr or scoped_ptr, for Symbian?
Is there any kind of automatic pointer, similar to auto_ptr or scoped_ptr , for
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Unfortunately, no. If you mean native Symbian C++, of course. I can only propose you to use
template <class T> class TAutoClose, which can be used to callClose()method on different R-classes, when TAutoClose instance goes out of scope. For example,myFile::Close()will be called when iFile goes out of scope.Hope this helps. Symbian development is not the easy. 🙂