9 Jun
2013
9 Jun
'13
10:25 p.m.
AMDG On 06/09/2013 01:50 PM, Felipe Magno de Almeida wrote:
Hello Steven,
Is there anyway to not include some definitions in header to delay instantiation for use with explicit template instantiations in specific translation units with type_erasure?
No not really. You could theoretically split off the instantiations of /concept/<T>::apply, but I don't know how much that would help.
I have a CORBA library which uses type_erasure for each interface defined in IDL. The problem is that if I include too many #include's for the precompiled headers which use type_erasure, then the compiler ends up consuming too much memory (>10GB), which makes it unfit for 32bit compilers which can use at most 3GB.
In Christ, Steven Watanabe