Browse Source

Worked around long-standing Doxygen warnings.

pull/7/head
Vladimír Vondruš 14 years ago
parent
commit
049523cb74
  1. 10
      src/Math/Matrix.h
  2. 16
      src/SizeTraits.h

10
src/Math/Matrix.h

@ -67,7 +67,15 @@ template<std::size_t size, class T> class Matrix: public RectangularMatrix<size,
(*this)(i, i) = value;
}
/** @copydoc RectangularMatrix::RectangularMatrix */
/**
* @brief Initializer-list constructor
* @param first First value
* @param next Next values
*
* Note that the values are in column-major order.
* @todoc Make this copydoc when Doxygen is fixed
* @todoc Remove workaround when Doxygen supports uniform initialization
*/
#ifndef DOXYGEN_GENERATING_OUTPUT
template<class ...U> inline constexpr Matrix(T first, U... next): RectangularMatrix<size, size, T>(first, next...) {}
#else

16
src/SizeTraits.h

@ -147,7 +147,13 @@ SizeTraits class.
*/
template<std::uint32_t base, std::uint32_t exponent> struct Pow {
/** @brief Value of the power */
enum: std::uint32_t { value = base*Pow<base, exponent-1>::value };
enum: std::uint32_t {
#ifndef DOXYGEN_GENERATING_OUTPUT
value = base*Pow<base, exponent-1>::value
#else
value
#endif
};
};
#ifndef DOXYGEN_GENERATING_OUTPUT
@ -166,7 +172,13 @@ SizeTraits class.
*/
template<std::uint32_t base, std::uint32_t number> struct Log {
/** @brief Value of the logarithm */
enum: std::uint32_t { value = 1+Log<base, number/base>::value };
enum: std::uint32_t {
#ifndef DOXYGEN_GENERATING_OUTPUT
value = 1+Log<base, number/base>::value
#else
value
#endif
};
};
#ifndef DOXYGEN_GENERATING_OUTPUT

Loading…
Cancel
Save