L. David Baron:
> I'm in favor of making it a struct -- but if it becomes a template,
> won't the functions that accept it have to become templates,
> generating multiple copies of the code where we currently have only
> a single copy?

You’d hope that the compiler would fold together all the versions of the
template that took the same sized enum.  (You could always have a small
inline function that casts to uint8_t and have a common implementation
that works on the untyped values.)

-- 
Cameron McCormack ≝ http://mcc.id.au/
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to