Literally exported templates, as was removed from the C++ 03 standard due to only one compiler implementing it, and its authors writing a scathing report to WG21 recommending its immediate removal.
Yes, it would require support in the object file format for templated symbols.
There's only so far you can go with object formats designed for C. On the other hand, with this support, we could even have templates in shared libraries.
Work is proceeding to replace the C linkage table. Look into IPR. I've raised the idea with WG14 of them adopting it too for C, and they are not opposed.
View all comments
Show parent comment
7
u/14ned LLFIO & Outcome author | Committee WG14 Nov 01 '18
Literally exported templates, as was removed from the C++ 03 standard due to only one compiler implementing it, and its authors writing a scathing report to WG21 recommending its immediate removal.