
Hi, The mirror library which I happen to be developing ;-) does (among other stuff) a similar thing. The library is still in early stages of development, but if you're interested, the current version can be found both in the sandbox and in the vault. My implementation has some drawbacks, like the need to do type/template registering before they can be reflected so I would definitelly like to look at your implementation. On Fri, Jun 6, 2008 at 6:15 PM, Joel FALCOU <joel.falcou@u-psud.fr> wrote:
Hello,
during the past years, I stumbled across various bugs in template meta-programms and found useful to have a small tools that is able to display at runtime the exact type of a given object or template type as a basic std::string in code fragments like :
template<class T, template<class,class> class X > struct { static inline DoSomething( T const & x) { // soem code std::cout << "Currently instanciating : " << identify< X<T,typename T::type> >::Name() << std::endl; } };
Basically this small library replace typeid and its non-standard name() method by a meta-programmed class (identify) which is able to handle various classic types (being template or not themselves). I was wondering if such a library could be of interest and be submitted as a possible addition to Boost or if this scope (type name display) was too mundane.
If the former, I'll be glad to post some more material and discuss a possible rationale.
Regards
-- Joel FALCOU Research Engineer @ Institut d'Electronique Fondamentale Université PARIS SUD XI France
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
best regards, -- ________________ ::matus_chochlik