Additional change due a comment, changing 'const' to 'constexpr'

#362
This commit is contained in:
Shamari Campbell 2018-12-17 21:00:40 +00:00
parent ddc38c3998
commit 240f1b7e31

View File

@ -244,7 +244,7 @@ namespace nana
{ {
if (month != 2) if (month != 2)
{ {
const std::array<unsigned, 12> days_in_month = { 31, 0, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; constexpr std::array<unsigned, 12> days_in_month = { 31, 0, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
return days_in_month[month - 1]; return days_in_month[month - 1];
} }