You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am using breathe 4.18.0 + sphinx 3.0.3 + doxygen 1.8.17 and I am encountering a problem when using the directive doxygenfunction to document the operator() of a class
Here is a dummy example
namespacetest{
template<typename T>
classMyClass{
public://constructors destructor and other stuff/** * This is an operator+ * * \param val input * \return something*/
T operator+(T val) constnoexcept{
return x+val;
}
/** * This is an operator() * * \param val input * \return something*/
T operator()(T val) constnoexcept{
return val*x;
}
private:
T x;
};
}//namespace test
Now, when I build the documentation from
Test Documentation
==================
Using doxygenclass
~~~~~~~~~~~~~~~~~~
.. doxygenclass:: test::MyClass:members:
Using doxygenfunction
~~~~~~~~~~~~~~~~~~~~~
.. doxygenfunction:: test::MyClass::operator+(T val) const noexcept
.. doxygenfunction:: test::MyClass::operator()(T val) const noexcept
I got this result
So the directive doxygenclass manages to document the overload, whereas the directive doxygenfunction fails to find the function. I tried to change the signature of the function in the .rst file, but to no success.
The text was updated successfully, but these errors were encountered:
Hi, I am using breathe 4.18.0 + sphinx 3.0.3 + doxygen 1.8.17 and I am encountering a problem when using the directive doxygenfunction to document the operator() of a class
Here is a dummy example
Now, when I build the documentation from
I got this result
So the directive doxygenclass manages to document the overload, whereas the directive doxygenfunction fails to find the function. I tried to change the signature of the function in the .rst file, but to no success.
The text was updated successfully, but these errors were encountered: