Hi doxygen,

I am encountering warnings using Doxygen 1.8.10 for the below example of 
overloaded template member functions with explicit instantiation of one (or 
more) of the overloads for specific template types.

//! a test class with overloaded template members
class Bar
{
public:
  //! first overload of template member function
  template <typename T>
  T foo(T a, int b);

  //! second overload of template member function
  template <typename T>
  T foo(T a, double c);
};

//! force instantiation of first overload for type 'short'
template short Bar::foo<short>(short, int);

Output

warning: no matching class member found for
  template short Bar::foo< short >(short, int)
Possible candidates:
  'template < T >
  T Bar::foo(T a, int b)
  'template < T >
  T Bar::foo(T a, double c)

Is there a way to incorporate the existence of an explicit instantiation (or 
its accompanying doxygen documentation) in the detailed documentation of the 
class member (which happens if there are no overloads)?

Thanks,
Harald Heese



________________________________
The information contained in this message may be confidential and legally 
protected under applicable law. The message is intended solely for the 
addressee(s). If you are not the intended recipient, you are hereby notified 
that any use, forwarding, dissemination, or reproduction of this message is 
strictly prohibited and may be unlawful. If you are not the intended recipient, 
please contact the sender by return e-mail and destroy all copies of the 
original message.

------------------------------------------------------------------------------
_______________________________________________
Doxygen-users mailing list
Doxygen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/doxygen-users

Reply via email to