我目前正在使用Doxygen記錄我的代碼。看起來好像Doxygen無法處理模板返回值。我的問題:Doxygen無法解析模板返回類型
/**
* Retrieves all edges from the graph.
* @param gID The ID of the graph.
* @return A list containing pairs of vertices, denoting the edges in the graph.
*/
int GetEdges(const int& gID); // Works fine
/**
* Retrieves all edges from the graph.
* @param gID The ID of the graph.
* @return A list containing pairs of vertices, denoting the edges in the graph.
*/
list<pair<int,int>> GetEdges(const int& gID); // PROBLEM
第二個函數沒有得到記錄。更糟; Doxygen現在會跳過它下面的所有函數。不知何故,doxygen似乎無法處理list<pair<int,int>>
的返回值。
有人知道爲什麼以及如何改變這種情況嗎?先謝謝你。
我很確定它可以,我的一些doxygen記錄的代碼使用模板返回類型。您是否爲C++設置了doxygen並啓用了STL選項? – ssube 2011-04-13 18:19:49
我沒有選擇該選項。它仍然沒有爲我提供解決方案。 – 2011-04-14 07:18:01