4

I'm trying to document the following SFINAE overloaded functions (both of them) with Doxygen 1.8.11:

template <typename T, typename std::enable_if< std::is_integral<T>::value, int >::type = 0>
auto func(T x);

template <typename T, typename std::enable_if< std::is_floating_point<T>::value, int >::type = 0>
auto func(T x);

However the generated documentation contains only the first occurrence.

Is there any way to document multiple SFINAE overloaded functions in doxygen?

plasmacel
  • 8,183
  • 7
  • 53
  • 101
  • conditional preprocessor directives with alternate signatures for doxygen and real compilation I'm afraid :/ – Richard Hodges Apr 12 '16 at 13:31
  • it's so frustrating that in 2016 you still have no proper tools to generate documentation for a C++ standard from 2011 – plasmacel Apr 12 '16 at 13:33
  • 1
    see this question and the accepted answer: http://stackoverflow.com/questions/3435225/c-meta-programming-doxygen-documentation – Richard Hodges Apr 12 '16 at 13:36

0 Answers0