Is strlen (__ FILE__) checked at compile time
2 answers
Clang and gcc can both figure this out at compile time thanks to constant bending , but that doesn't apply anywhere in the C ++ Standard.
Usage sizeof
can ensure that this is evaluated at compile time.
+8
source to share