I'm getting warnings for a namespace member that doesn't exist:
/usr/home/kamikaze/stark/Yggdrasil/src/units/Units.hpp:801: warning: Member rhs (variable) of namespace units is not documented.
[ … warnings from not yet documented code ]
/usr/home/kamikaze/stark/Yggdrasil/src/units/Units.hpp:801: warning: Member rhs (variable) of namespace units is not documented.
<rhs>:1: warning: parameters of member units::rhs are not (all) documented
The following code leads to this:
namespace units {
[ … ]
/**
* Binary operator to divide a scalar value by a unit typed value.
*
* @tparam T
* The scalar type
* @tparam Spec
* The dimensions and factors characterising the unit type
* @param lhs
* The scalar value
* @param rhs
* The unit typed value
* @return
* The quotient with a type derived from the rhs value
*/
template <typename T, class... Spec>
constexpr auto operator / (T const lhs, units_t<T, Spec...> const rhs)
-> decltype(typename decltype(rhs)::scalar{lhs} / rhs) {
return typename decltype(rhs)::scalar{lhs} / rhs;
}
} /* namespace units */
The problem seems to be with the decltype() expression. The following documentation is created for the bogus member:
I'm getting warnings for a namespace member that doesn't exist:
The following code leads to this:
The problem seems to be with the
decltype()
expression. The following documentation is created for the bogus member: