David B. Held wrote:

> "Hartmut Kaiser" <[EMAIL PROTECTED]> wrote in message
> 000f01c2b691$45a3a1a0$0b00a8c0@fortytwo">news:000f01c2b691$45a3a1a0$0b00a8c0@fortytwo...
> > Terje Slettebų wrote:
> > > [...]
> > > typedef char (&yes_type)[1];
> > > typedef char (&no_type)[2];
> >
> > Within the Boost.Spirit library we have the need to have not only
> > two distinct (size-)types, but something around a dozen. Wouldn't it
> > be better to provide something more general as the two (size-)type
> > yes/no solution? With Boost.PP this shouldn't be any problem.
>
> You mean like:
>
> template <int N> struct size_type { char s[N]; };
>
> typedef size_type<1> false_t;
> typedef size_type<2> true_t;
> typedef size_type<3> some_other_t;
> ...

Yes. Sorry for beeing too inconsise.

Regards Hartmut



_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to