[Doxygen-users] Problem with namespaces and templates
Brought to you by:
dimitri
From: <Car...@no...> - 2002-01-07 14:29:27
|
Hi, I think I found a problem in Doxygen related to the matching between a functions's declaration and it's definition, when namespaces and templates are used: Consider this code: ------------------------------------------------- /** \file Doxygen test with namespaces - implementation */ #include <vector> void f(std::vector<int>* pVector); using std::vector; /// example function void f(vector<int>* pVector) { } /// main function int main(const int argc, const char* const argv[]) { vector<int> v; f(&v); return 0; } ------------------------------------------------- When I run Doxygen with a plain-vanilla Doxyfile (with QUIET=YES) I get these warnings: /home/carloshe/doxygenProblem/namespaces.cc:7 Warning: Member f of file namespaces.cc is not documented. If I change the definition of function f to: void f(std::vector<int>* pVector) Then I don't get any problem. I have not seen this happen with similar cases where the definition was less qualified then the declaration but templates were not involving so this might be related to some interaction between namespaces and templates when matching function signatures. Regards, Carlos |