3 ms·
Isn’t the linker entitled to put a constant object in a read-only page of the binary if it doesn’t require a ctor at runtime?
by erik_seaberg 3y ago
Isn’t the linker entitled to put a constant object in a read-only page of the binary if it doesn’t require a ctor at runtime?
- kevincox 3y agoYes. That is why global static `const`s (with exceptions like if they have mutable fields) can't legally have their `const` casted away.