How Do Compilation and Linking Affect constexpr Declarations Across Multiple Files in C++?
I’m trying to understand the relationship between compilation, linking, and the determination of constexpr values in C++. I know that constexpr values need to be fully resolved at compile-time, but some discussions suggest that these are determined during the entire translation process, which includes both compilation and linking. For instance, consider the following excerpt from “Effective Modern C++” book that has confused me: