add constexpr keyword to c++
update test