|
Boost Users : |
From: Ovanes Markarian (om_boost_at_[hidden])
Date: 2007-04-19 18:41:36
Ken,
Thanks for your answer. Probably I incorrectly expressed my question. I am
looking for a way to generate for every typedef a unique tag type. May be I
got an idea, which I must test and can post here later on.
Many thanks,
Ovanes
-----Ursprüngliche Nachricht-----
Von: Ken [mailto:krovchuck_at_[hidden]]
Gesendet: Freitag, 20. April 2007 00:31
An: boost-users_at_[hidden]
Betreff: Re: [Boost-users] Static typing question
On Apr 19, 2007, at 2:02 PM, Ovanes Markarian wrote:
> Hello all!
>
>
> I have a question on static typing. Does someone know or can
> imagine a way on producing unique
> static types. An example:
>
>
> typedef unsigned int some_type;
> typedef unsigned int other_type;
>
The typedef just renames the type, it does not make create a unique
type.
You can use a struct:
struct { unsigned int x } some_type;
struct { unsigned int x } other_type;
though this makes using the types ugly.
Ken Krovchuck
_______________________________________________
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