This (at least for me) is a typical case of excessive complexity when switching between languages. Yes, you could implement the functionality to add the loading of the compile-time file in C ++, we could also add reflection at runtime. However, in my opinion, they are not needed and functions are not needed.
, constexpr, ( Microsoft), , .
, .h(header), . .
, constexpr ,
" ", IDE , , , .
FOSS ./configure - Git - , , .
, , ++ 17 , , - , , .
, , . ~ Bjarn Stroustrup
( ). , ... .
, - , ..
[/]
- - ; , , - , , , - . , ++.
[edit 2/]
: " char *, ! .
- ,
char* constantexp? , , - , . - - , ++ ( , ).
- - , , , ? ? ? ?
, .
, , , (: \0x0, \0x12, \0x22), , . #include - , , , , ++, .
, , ++ , , Very Bad Press. , , - .
, ++ , " ++ ", , Nokia 1990 - , , , ++ . Java - .
, : , . , , , , ++ - Utopia, . , , . , , .