After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 759381 - unable to @ref or @link C++ templated operator overloads
unable to @ref or @link C++ templated operator overloads
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.8.10
Other Linux
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2015-12-12 09:51 UTC by Andrew
Modified: 2015-12-30 10:19 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Andrew 2015-12-12 09:51:39 UTC
In a templated class doxygen is unable to reference or link operator overloads, while on a regular member function @ref and @link work fine. See example below.

/** the example class Foo
===
In class @ref Foo<T> "Foo" you cannot reference to operators like @ref Foo<T>::operator+() but to functions like @ref Foo<T>::foo() you can.

The same goes with linking
@link Foo<T>::operator+()
operator+()
@endlink
and
@link Foo<T>::foo()
foo()
@endlink
*/
template<typename T>
class Foo
{
public:
    Foo() {}
    /** operator+ for Foo.*/
    void operator+() {}
    /** foo function instead of operator.*/
    void foo() {}
};
Comment 1 Dimitri van Heesch 2015-12-19 22:37:01 UTC
Confirmed. Should be fixed in the next GIT update.
Comment 2 Dimitri van Heesch 2015-12-30 10:19:59 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.11. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information 
that you think can be relevant (preferably in the form of a self-contained example).