
Vladimir Prus wrote:
I think this fact that mere use of a single boost::regex function cause a bunch of implementation functions to be added to libtest.so to be unfortunate -- besides possible performance issues you've found, it also code bloat, and may be dangerous if different versions of internal functions are included in different libraries. Without further investigation, I don't know how easy it is to fix.
Surely this is true of *any* template though - if it's used by two different shared libraries then both instantiate and get a complete copy of the template. If the two libraries are built with different build options, then you get ODR violations with all that means. Unless I'm missing something I don't see anything to be fixed here, that's just how templates work? John.