This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.
Also, for this example of a templated i2c register write function that works on scoped enums - I guess the most valid question here would be "why are we forcing scoped enums in the first place?" But also - why is the validation on whether or not the input enum is scoped occurring in the type signature of the return? That's weird, right? I'm also torn because "auto" is both a convenience and a…
Also, for this example of a templated i2c register write function that works on scoped enums - I guess the most valid question here would be "why are we forcing scoped enums in the first place?" But also - why is the validation on whether or not the input enum is scoped occurring in the type signature of the return? That's weird, right?
I'm also torn because "auto" is both a convenience and a goddamn plague
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.