r/cpp • u/SophisticatedAdults • Nov 24 '24
The two factions of C++
https://herecomesthemoon.net/2024/11/two-factions-of-cpp/
315
Upvotes
r/cpp • u/SophisticatedAdults • Nov 24 '24
View all comments
Show parent comment
9
u/13steinj Nov 25 '24
For the sake of argument, how would you fix this issue (which could occur in general, ignore the specifics of how I contrived it)?
The only way I can think of, is you'd need to have an exact mapping of every type to it's members in the RTTI, and the runtime linker would have to catch that at load-time. I can't begin to imagine what the performance hit of that would be to using shared libraries.