
foo::myFunction will be invoked through a stub function which is part of the dictionary library for class foo. A dictionary library may be dynamically loaded in a program.
The source code for this dictionary library is produced in a non- intrusive way with a python script (genreflex.py). Besides the stub functions this dictionary source code contains the information about all types, scopes, members one wants to generate the reflection information for.
This sounds similar to another CERN project: Cint (http://root.cern.ch/root/Cint.html), the C/C++ interpreter. Do they share code? This reflection method seems interesting (although a native one would be better no doubt). In addition to your library I would encourage Cint guys to present the library to Boost (for example, they could use the Wave preprocessor for complex C/C++ instead of writing their own). A C/C++ interpreter would be killer for Boost (having also native<->interpreted transitions). Regards, Ion