25 Jan
2024
25 Jan
'24
5:57 p.m.
John Maddock wrote:
On the specifics: I agree with the comment about the constants in the headers, while these could hidden inside inline functions (which would then presumably get merged at link time), I see no good reason not to declare them extern and move to a .cpp file, given that we have separate source anyway.
I haven't looked at the specific constants in question, but if they are used by the constexpr integral functions, you can't put them into a .cpp file.