Closed
Description
[enum.copy_options] says:
Calling a library function with more than a single constant for an option group results in undefined behavior.
I don't like how this is phrased. Firstly, which library? Does it apply to any function in the standard library, e.g. std::move
?
Secondly, I'd prefer if it used the term of art "is set" for bitmask elements set in a bitmask object.
This doesn't exactly roll off the tongue, but I think it's more precise:
"A value of type copy_options
that is passed to a function described in subclause 27.10 shall have at most one element set from each option group."
Metadata
Metadata
Assignees
Labels
No labels