3 ms·
> You can't "append compiled code into a module" when templates can completely change the code that would've been compiled. Why can't you, I don't believe the
by ender341341 3y ago
> You can't "append compiled code into a module" when templates can completely change the code that would've been compiled.
Why can't you, I don't believe the standard says anything about the intermediary compiled unit of the module that would block it from doing so, I haven't dug into the implementations but I'd imagine they effectively create a static library analog of the compiled code and some analog of a header file for use in other compilation units, so say you're wanting to use std::vector<int> it can just look and see if that's already present in the module, if not instantiate it and then write it to the 'static library analog'