From a331c81620bd8cbeedc361ba6c97f5418b0f8bd6 Mon Sep 17 00:00:00 2001 From: moonleay Date: Wed, 20 Nov 2024 19:00:06 +0100 Subject: [PATCH] feat: made digit vectors constexpr --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index 025cf73..2468084 100644 --- a/main.cpp +++ b/main.cpp @@ -1,10 +1,10 @@ #include "std_lib_inc.h" -const vector first_digit_strings = { +constexpr vector first_digit_strings = { "", "ein", "zwei", "drei", "vier", "fuenf", "sechs", "sieben", "acht", "neun" }; -const vector middle_digit_strings = { +constexpr vector middle_digit_strings = { "", "zehn", "zwanzig", "dreissig", "vierzig", "fuenfzig", "sechzig", "siebzig", "achzig", "neunzig" };