Skip to content

C++ function returning std::function with reference argument is not recognized as a function (Origin: bugzilla #792830) #6319

@doxygen

Description

@doxygen

status NEW severity normal in component general for ---
Reported in version 1.8.14 on platform Other
Assigned to: Dimitri van Heesch

On 2018-01-23 15:44:39 +0000, [email protected] wrote:

For a function returning a std::function object, if there is a reference in
the std::function template argument Doxygen erronously classifies the
function as a variable.

Example:
-----------------------------------------------
#include <functional>

/** Test function */
std::function<void(const float&)> MyTestFunc();
-----------------------------------------------
MyTestFunc is listed as a variable in the generated html documentation.

The following code is parsed correctly:
-----------------------------------------------
#include <functional>

/** Test function */
std::function<void(const float)> MyTestFunc();
-----------------------------------------------

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions