You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A class S is an implicit-lifetime class if it is an aggregate or has at least one trivial eligible constructor and a trivial, non-deleted destructor.
It's ambiguous whether this means (A || (B && C)) or ((A || B) && C).
How about:
A class S is an implicit-lifetime class if it has a trivial, non-deleted destructor and either it is an aggregate or it has at least one trivial eligible constructor.
The text was updated successfully, but these errors were encountered:
The problem is that the omission of words in the English phrasing "or has X and Y" leads me to believe that "and" binds more tightly here than the "or". I'm wary of introducing a silent semantic change.
I don't think an aggregate with a non-trivial destructor can be an implicit-lifetime type, can it?
It probably shouldn't be, but there was actually only one way to parse the sentence in question (because "a trivial, non-deleted destructor" is merely a noun phrase).
It's ambiguous whether this means (A || (B && C)) or ((A || B) && C).
How about:
The text was updated successfully, but these errors were encountered: