object - C++ Destructor Called Multiple Times -
I'm making a little wrapper class for the slide. To obtain data from the database / I have a class called SQLiteValue, the binding data for the query is created on the SQLiteValue instance stack and some functions are passed near. The skeleton outline of the square is given below.
The object is created by one of the many overloaded constructors, the constructors start a "member" of PDAT on their own basis. This important thing for this class is now, the problem is that the consultants have been overloaded to me, so I get a clean method call and do not need to explicitly call SQLiteValue (xxx). As I do not really want to use references for the function, so I define them.
Zero Bundvalue (Const char * name, SQLiteValue value) query- & gt; BindValue (": Username", "User2"); / / "Clean" method call Announce them like this every time (or something similar?) To cause a new object to instantaneously I call a function And so allocates to district memory pdata. This is bad.
I should know what it is. What am I trying to do while maintaining my clean method call? At the moment I have a personal function that is operated by reference which resolves this issue, but I do not really like this method.
Thank you.
Comments
Post a Comment