Here is a short C++ template class that generates a doxygen warning
and incorrect documentation.

Doxygen reports this error:

doxy.h:15: warning: Member assign(Other first, Other last) (function)
of class A is not documented.

In the HTML I see two listings for the assign method. One has the
correct documentation and the other does not. It seems to be confusing
the definition at the bottom of the file as a different method than
the declaration.

Ideas?

Thanks,

John


template<class T> struct enable_if<true, T> { typedef T type; };

/** A class */
template<class T>
class A {
  public:
    /** assign docs. Something else. */
    template<class Other>
    typename enable_if<true, void>::type assign(Other first, Other last);
};

template<class T>
template<class Other>
typename enable_if<true, void>::type A<T>::assign(Other first, Other last)
{ }

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Doxygen-users mailing list
Doxygen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/doxygen-users

Reply via email to