Probably the compiler optimizes your use of that "static const" away. (As it is static const, it is guaranteed to never change and can be replaced by its compile time value).
(Try without optimizations...)