Const to constexpr for c++11 compatibility