From 1ce0e68f0f9af3d7726119813eaaf05d82283988 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 22 May 2012 16:53:33 +0200 Subject: [PATCH] Doc: better reason for functions in type traits. Also moved this to @internal instead of plain comment. --- src/Math/MathTypeTraits.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Math/MathTypeTraits.h b/src/Math/MathTypeTraits.h index 06e0f746d..4addbfb1d 100644 --- a/src/Math/MathTypeTraits.h +++ b/src/Math/MathTypeTraits.h @@ -43,14 +43,13 @@ specialization for given types. This class and class methods are specialized only for types where it makes sense, it has empty implementation for unknown types or types which don't support given feature, thus forcing the compilation stop with an error. + +@internal The following values are implemented as inline functions, not as + static const variables, because unlike static const variables the + functions can be overloaded, deleted and hidden. */ template struct MathTypeTraits { #ifdef DOXYGEN_GENERATING_OUTPUT - /* Development note: the following values are implemented as inline - functions, not as static const variables, because the compiler will - inline the return values instead of referencing to static data and - unlike static const variables these functions can return floats. */ - /** * @brief Epsilon value for fuzzy compare *