Re: [Doxygen-users] Doxygen not showing friend operators of C++ base class
Brought to you by:
dimitri
From: Maarten de J. <mj...@ni...> - 2017-09-01 11:43:20
|
Dear Richard, It actually corresponds to the so-called Barton–Nackman trick which is conform the C++ standard. It is characterized by an in-class friend function definition appearing in the base class template component of the curiously recurring template pattern (CRTP). This implies that the friend specifier is essential. Maarten On 01/09/2017 12:56, Richard Damon wrote: > On 9/1/17 2:03 AM, Maarten de Jong wrote: >> Dear all, >> >> In some previous versions of Doxygen (e.g. 1.6.1) , the friend >> operators of the base class >> in the attached example were displayed as "Friends" under the listing >> of the derived class >> but this is no longer so in the latest version of Doxygen (1.8.13). >> For information, the parameter INLINE_INHERITED_MEMB = YES. >> Would it be possible to recover this information? >> Thanks in advance, >> >> Maarten >> > One thing to note, friends are NOT inherited in C++, so the friend of > a base class has no special rights to my private/protected members, > just those of my base class that gave it friendship. > > The out of class operators (which are sometimes given friend access) > are NOT member functions. > > Doxygen listing them as 'Inherited Members' would have been a bug. > |