Re: [Doxygen-develop] Smart Pointers
Brought to you by:
dimitri
From: Robert N. <rn...@re...> - 2011-03-09 17:31:19
|
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: dox...@li... 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 Dox...@li... https://lists.sourceforge.net/lists/listinfo/doxygen-develop |