I need to build an array of heterogeneous types in c++. The array is constructed at compile time, however, its construction is dispersed across different compilation unit (i.e. different source files). The array should be easily extended to contain new types as the programming of the application progress. The resulting array should be accessed at run time.
Is that possible?
I delved a little bit into boost mpl and boost fusion but did not find an answer.
thanks