Re: Smart Pointers
Robert Nelson <[email protected]>
| Newsgroups | gmane.text.doxygen.devel |
|---|---|
| Message-ID | <[email protected]> |
I attached the patch to implement handling of operator ->() for Smart Pointer support to bug # 333931. The problem described below seems to be caused by the call context being set to the template class instead of the specific instantiation of it. If anyone has any suggestions on how to fix it I'd really appreciate it. This is the only thing remaining to have proper "Referenced By" and "References" when using smart pointers. -----Original Message----- From: Robert Nelson Sent: Tuesday, March 08, 2011 1:17 PM To: [email protected] Subject: [Doxygen-develop] Smart Pointers I'm implementing support for smart pointers. I have the operator ->() part working but I'm hitting a problem with typedefs and was hoping someone could point me in the right direction. For example given the following code: template<class T> class CPointer { public: T *operator ->(void) const { return m_pObject; } private: T * m_pObject; }; class CTest { public: void Func(void) { } }; CPointer<CTest> pTest; typedef CPointer<CTest> CTestPtr; CTestPtr pTest2; pTest->Func(); // Works pTest2->Func(); // Doesn't work. ------------------------------------------------------------------------------ What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect on application quality, and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d _______________________________________________ Doxygen-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/doxygen-develop ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d