Archived Forum Post

Index of archived forum posts


subclassing in C++

Dec 28 '16 at 09:23

Are there any limitations on subclassing Ck*-classes within C++/C++11 environment ? Any trap to watch out or free to do ?

I'm right now looking specifically into subclassing of CkJsonObject and its colleagues.


The only thing to watch out for is that the class cannot be copy-constructed or assigned. Each Chilkat C++ class makes the copy constructor and assignment operator private. For example:


// Don't allow assignment or copying these objects.
CkEcc(const CkEcc &);
CkEcc &operator=(const CkEcc &);