Boost logo

Boost :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2005-02-25 13:44:40


> 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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk