8000 c++ template function definition miss-ref · Issue #11374 · doxygen/doxygen · GitHub
[go: up one dir, main page]

Skip to 8000 content
c++ template function definition miss-ref #11374
@nickreserved

Description

@nickreserved

It does not make the correct link
\ref mafematics::eq(const T1&, const T2&, const decltype(T1{}-T2{})&)

The original declaration is (inside namespace mafematics):

template<arithmetic T1, arithmetic T2>
constexpr bool eq(const T1 &x, const T2 &y, const decltype(T1{} - T2{}) &zero_threshold) noexcept

Also there is:

template<arithmetic T>
constexpr bool is_zero(const T &x) noexcept;

template<DenseVector T>
constexpr bool is_zero(const T &v) noexcept;

template<SparseVector T>
constexpr bool is_zero(const T &v) noexcept;

template<DenseMatrix T>
constexpr bool is_zero(const T &m) noexcept;

template<SparseMatrix T>
constexpr bool is_zero(const T &m) noexcept;

  1. How to match the correct function with \ref?

  2. Also, warnings appear because I use in corresponding function's doc, \param x and \param v and \param m. For some reason doxygen thoughts that every param must be the same name (e.g. x for all) for all of the above functions. Probably ALL of the above functions ARE THE SAME for doxygen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C++20For features introduced in the 2020 spec of C++C/C++enhancementa request to enhance doxygen, not a bug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0