
31 Mar
2010
31 Mar
'10
6:35 p.m.
AMDG DE wrote:
on 31.03.2010 at 22:18 Steven Watanabe wrote :
It will not. const size_t bits_per_digit = std::numeric_limits<digit_t>::digits; is equivalent to static const size_t bits_per_digit = std::numeric_limits<digit_t>::digits;
i see i'm too lazy too consult the standard but still i think it's a good idea to define compile time constants as enum members
can you clear this question for me once and forever, Steven? is it preferable or is it solely a matter of taste?
static const size_t is usually better because it has the correct type, and so will behave better for overload resolution. In Christ, Steven Watanabe