New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[C++11] Problem for associating documentation to the right function for template SFINAE (Origin: bugzilla #691602) #5030

doxygen opened this Issue Jul 2, 2018 · 0 comments


None yet
1 participant

doxygen commented Jul 2, 2018

status RESOLVED severity normal in component general for ---
Reported in version 1.8.2 on platform Other
Assigned to: Dimitri van Heesch

On 2013-01-12 13:18:09 +0000, Vincent wrote:

Consider the following code that uses template SFINAE thanks to std::enable_if of C++11:

#include <type_traits>

struct MyClass
template<typename T, class = typename std::enable_if<std::is_arithmetic::value>::type>
void f(const T& x) const;

template<typename T, class = typename std::enable_if<!std::is_arithmetic<T>::value>::type, class = void> 
void f(const T& x) const;


/// \brief Version 1
template<typename T, class>
void MyClass::f(const T& x) const
std::cout<<"Version 1"<<std::endl;

/// \brief Version 2
template<typename T, class, class>
void MyClass::f(const T& x) const
std::cout<<"Version 2"<<std::endl;

int main()
MyClass myclass;
return 0;

Doxygen is not able to associate the documentation to each function and produces only documentation for the first one.

On 2013-01-19 22:44:33 +0000, Dimitri van Heesch wrote:

Confirmed. Should be fixed in the next subversion update.

On 2013-01-20 13:35:01 +0000, Dimitri van Heesch wrote:

This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 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.

@doxygen doxygen closed this Jul 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment