[Doxygen-users] What is a file member?
Brought to you by:
dimitri
From: Simon S. <sim...@ar...> - 2011-04-15 09:46:01
|
Hi, I get the following warning: “warning: no matching file member found”. What is a file member? The full message is /home/wbam/Vertrauen/Shawn/src/sys/xml/sax_reader.h:36: warning: no matching file member found for std::string shawn::xml::attribute(std::string name, std::multimap< std::string, std::string > &atts, std::string default_val="")Possible candidates: std::string attribute(std::string name, AttList &atts, std::string default_val) Maybe the problem is related to the typedef AttList. But in all other cases, Doxygen resolves typedefs correctly. The C++ compiler gives no warning and the program runs fine since a couple of years. Below you find some cuts of the code in sax_reader.h and sax_reader.cpp. I would very appreciate any hint since I try to solve this for quite a while now. Especially some tips about how to debug this problem would be very good. Best regards, Simon In sax_reader.h, the code looks like (shortened): namespace shawn { namespace xml { /** * A table for XML attributes. */ typedef std::multimap<std::string, std::string> AttList; /// Extracts the value of an attribute. Returns default_val if not existing std::string attribute(std::string name, AttList& atts, std::string default_val = ""); } } In sax_reader.cpp, the code looks like (shortened). #include <sys/xml/sax_reader.h> using namespace std; namespace shawn { namespace xml { std::string attribute(std::string name, AttList& atts, std::string default_val /* = "" */) { for(AttList::iterator it = atts.begin(), end = atts.end(); it! =end; ++it) if( it->first == name ) return it->second; return default_val; } } } |