-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why do neither reference types nor array types satisfy Destructible? #70
Comments
Primarily because we want to guarantee that As is the case for many of the library concepts, There's a strong argument that |
ISTM we can avoid at least some disjunctions via a conditional expression: template< class T, class... Args > — WEB |
WEB writes:
Does that really avoid the problem? Would not a disjunction by another name smell as sweet? |
It might, IMO, else I would not have written. See below.
Possibly, but not necessarily. It’s been reported (e.g., earlier in this issue) that disjunctions (which I interpret as or-expressions) tend to degrade performance. However, I have not seen reports from any experiment that explores the algorithmic performance of conditional-expressions. Until we have hard data, it is at least plausible to me that the underlying algorithm may process an or-expression differently than it does a conditional-expression. ISTM to be worth an experiment that explores the conjecture, and then we’ll know. — WEB |
Specifically, our definition of For our implementation of
is an atomic predicate equivalent to "Hiding" the disjunction inside an atomic predicate addresses the compiler performance issue, but converting e.g.
can't be disambiguated when |
I added a patch to the issue in Bugzilla last week fyi. On Mon, Aug 3, 2015, 23:03 Casey Carter notifications@github.com wrote:
|
Alisdair sees "Destructible" as meaning "can fall out of scope." "Deletable" might mean, "can call the destructor explicitly". Think about naming, also for the section. References are not objects, so why are these Object Concepts? |
An email from Walter Brown asks (I assume Walter would not mind me reposting the question here):
Proposed Resolution
See P0547R1.
The text was updated successfully, but these errors were encountered: