On 9/2/12 4:22 PM, Andrei Alexandrescu wrote: [snip] The alternative would be to simply define these as functions: if (a.among("struct", "class", "union")) { ... } if (b.between(1, 100)) { ... } Andrei