$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Paul Mensonides (pmenso57_at_[hidden])
Date: 2005-05-13 15:37:54
> -----Original Message-----
> From: boost-bounces_at_[hidden]
> [mailto:boost-bounces_at_[hidden]] On Behalf Of Loïc Joly
> Now, I have to decide what will be the interfaces for such
> rich enums.
> My (unreachable) goal would be something like that :
> RichEnum Type{Val1, Val2, Val3};
>
> A little bit more reasonnable (but still unacheivable, I
> believe) goal would be :
> RICH_ENUM(Type, Val1, Val2, Val3);
Yes, unachievable in current C++ (i.e. without variadic macros from C).
> I think I can come up with several possible writing :
>
> 1/
> RICH_ENUM(Type, (Val1)(Val2)(Val3));
This one is fine, IMO
> And now, the questions :
> Which writing do you think would be best ? Why ? Are there
> other possibilities I overlooked ? Is is possible to have a
> syntax like 1/ and 2/ with good debugability ?
(I have to get back to this part later, I'm out of time for the moment.)
Regards,
Paul Mensonides