Skip to content

Commit 26a150f

Browse files
committed
replace const with constexpr in initialization of stable version strings
1 parent 43aba32 commit 26a150f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -880,8 +880,8 @@ class cmdline_processor
880880
-> void
881881
{
882882
help_requested = true;
883-
const std::string_view a = __DATE__;
884-
const std::string_view b = __TIME__;
883+
constexpr std::string_view a = __DATE__;
884+
constexpr std::string_view b = __TIME__;
885885
std::unordered_map<std::string_view, char> m = { {"Jan",'1'}, {"Feb",'2'}, {"Mar",'3'}, {"Apr",'4'}, {"May",'5'}, {"Jun",'6'}, {"Jul",'7'}, {"Aug",'8'}, {"Sep",'9'}, {"Oct",'A'}, {"Nov",'B'}, {"Dec",'C'} };
886886

887887
auto stamp = std::to_string(atoi(&a[9])-15);

0 commit comments

Comments
 (0)