¡@

Home 

c++ Programming Glossary: smartptr

How many and which are the uses of “const” in C++?

http://stackoverflow.com/questions/455518/how-many-and-which-are-the-uses-of-const-in-c

won't change the logical state of this object. struct SmartPtr int getCopies const return mCopiesMade Use const for copy on..

How to overload the ->* operator?

http://stackoverflow.com/questions/5587152/how-to-overload-the-operator

func_ d str Obj obj_ ptmf func_ template class T struct SmartPtr ... PTMF_Object T operator PTMF_Object T ptmf func return PTMF_Object.. T ptmf func return PTMF_Object T p func ... int main SmartPtr Foo pf new Foo typedef int Foo Foo_ptmf double std string Foo_ptmf..

C++ covariant templates

http://stackoverflow.com/questions/639248/c-covariant-templates

me a compiler error class Base class Derived public Base SmartPtr Derived d new Derived SmartPtr Base b d compiler error Assume.. class Derived public Base SmartPtr Derived d new Derived SmartPtr Base b d compiler error Assume those classes are fully fleshed.. out... I think you get the idea. It can't convert a SmartPtr Derived into a SmartPtr Base for some unclear reason. I recall..