Boost logo

Boost Users :

From: Robert Dailey (rcdailey_at_[hidden])
Date: 2007-11-05 19:24:19


Thanks!

This seems to work, however looking at the implementation of <typeinfo> I
don't see the keyword "typeid" anywhere. Where in the world is it coming
from? Is <typeinfo> part of the standard? It's obviously not in STL since it
lacks the namespace. I'm a little confused as to where the file comes from,
as I've never heard of it before. I'm guessing it is a microsoft specific
thing.

Let me know. Thanks again.

On 11/5/07, Olivier Tournaire <olitour_at_[hidden]> wrote:
>
> Maybe you can try with typeid(t_type).name(), included in <typeinfo>.
>
> Regards,
>
> Olivier
>
> 2007/11/5, Robert Dailey <rcdailey_at_[hidden] >:
> >
> > Hi,
> >
> > As you know, with Microsoft VS preprocessor operators you can convert a
> > type passed in to a macro to a string. For example:
> >
> > #define TO_STRING( type ) #type
> >
> > I would like to do the same thing with a template type:
> >
> > template< typename t_type >
> > void TO_STRING()
> > {
> > // Do something here with t_type to make it a string and then return
> > it
> > }
> >
> > Is there something in boost that can facilitate the behavior I'm
> > describing? Thanks.
> >
> > _______________________________________________
> > Boost-users mailing list
> > Boost-users_at_[hidden]
> > http://lists.boost.org/mailman/listinfo.cgi/boost-users
> >
>
>
>
> --
> Le temps des cerises reviendra. Dans l'immédiat, c'est le temps des
> noyaux. Courage.
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net