On 4/9/14, 11:14 AM, Jonathan M Davis wrote:
On Wednesday, April 09, 2014 08:38:54 Andrei Alexandrescu wrote:
Too restrictive. What is a valid enum value? Would an enum flags need to
ascribe a name to every possible combination?

Why is that too restrictive? I don't see how it even fundamentally makes sense
for

     auto result = MyEnum.a | MyEnum.b;

to result in a value of type MyEnum.

One wants to call a function taking such an enum. -- Andrei

Reply via email to