MySQL Forums
Forum List  »  Connector/C++

Re: error C2259 on Visual C++ Express 2008
Posted by: Lawrin Novitsky
Date: April 23, 2009 10:44AM

No, you can't instantiate abstract class(w/ new). but you can use abstract class pointers.

btw, you don't need to create c/c++ objects - that's all done inside driver. but you have to delete all objects(except all kinds of metadata objects), supplied by driver, in your application, or it will leak memory.

so, using std::auto_ptr or boost::scoped_ptr(or maybe some other smart pointer) makes sense for connection, statement, resultset objects.



Options: ReplyQuote

Written By
Re: error C2259 on Visual C++ Express 2008
April 23, 2009 10:44AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.