
25 Feb
2005
25 Feb
'05
6:44 p.m.
It would also help if you added the construct you wrote
template<typename T> struct string_type_name;
#define DEFINE_TYPE_NAME(Type) \ template<> struct string_type_name<Type> \ { \ static char const * _() \ { \ return #Type; \ } \ }
to a common header, as I believe I am not the only one who would benefit from it!
Usually I am using RTTI for this king of task. But I will think about it. (MPL book have an excesize to do just something like this)
BTW, what now replaces unit_test_log ?
Nothing. Use unit_test_log. But without ::instance() Gennadiy