Open
Description
#include <type_traits>
/// @brief brief
/// @tparam T type
template <class T, class = void>
constexpr auto var = T{};
/// @brief brief
/// @tparam T integral type
template <class T>
constexpr auto var<T, std::enable_if_t<std::is_integral_v<T>>> = T{}
<source>:9:6: warning: '@tparam' command used in a comment that is not attached to a template declaration [-Wdocumentation]
9 | /// @tparam T integral type
| ^~~~~~
1 warning generated.
https://godbolt.org/z/Gx9bfYf4W
The documentation is still useful in the specialization.