I have always stated that I dislike C++. “Modern C++” (from C++11 on) changed a lot, but the language still has plenty of dark corners. And limits when you would like to achieve easily some goals, but the language reminds you it doesn't work that way, so things can become more complicated than you would like to think.
Showing posts with label compile time. Show all posts
Showing posts with label compile time. Show all posts
2019-01-12
2017-11-03
Check at compile time if a going-to-be-stringified symbol is a member of a struct
I wanted a string which must “contain” the name of a member of a struct. The compiler should check the right spelling (at compile time).
At last I have found a possible reason to use the comma operator…
2017-03-08
Length at compile time
How do you get the length of a string literal in C?
Labels:
C,
clang,
compile time,
compiler,
cpp,
gcc,
gdb,
macro,
string literal,
strlen
Subscribe to:
Posts (Atom)

