Add const specifiers to suppress warnings.

clang-3.3 says "warning: 'constexpr' non-static member function will not be implicitly 'const' in C++1y; add 'const' to avoid a change in behavior [-Wconstexpr-not-const]".