
Arkadiy Vertleyb wrote:
The example is at:
http://groups.yahoo.com/group/boost/files/typeof.zip
I am using an MS-specific __COUNTER__ preprocessor macro. I guess under other compilers macros REGISTER_TYPE_IMPL, REGISTER_TEMPLATE_1_IMPL, etc., can be used directly.
I admit that the code needs to be cleanned up in terms of MPL usage, as well as factoring out some code from registration macros, and better use of pre-processor looping features. I apologize for this. For now I am just trying to figure out whether there is an interest, and whether or not I am re-inventing the wheel :)
I'm interested. Spirit desperately needs a typeof mechanism, or better yet, an auto mechanism. It will make life so much happier :-) However, it definitely has to be cross platform. Regards, -- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net