- attached issue141.cpp
promise move assignment operator is missing
C++ concepts speced for promise
include MoveAssignable - however this operator is missing from the current implementation.
This deficiency makes it more awkward to correctly "re-init" a promise stored in statically in application-owned memory (where re-construction is not appropriate/sufficient, and where we want to elide the cost/complexity of dynamic allocation).
We need to determine whether this omission was intentional: if so what's the reason, if not are there any technical challenges to adding it?
Either way we currently have a compliance violation that needs to be resolved in the implementation and/or spec.
Comments (3)
-
reporter -
reporter Proposed fix in pull request #31
-
reporter - changed status to resolved
issue
#141: Add missing promise move assignment operatorResolves issue
#141→ <<cset bbb1830400f1>>
- Log in to comment
A test that demonstrates the problem, with a toy example (conceptually based on Brian's Cannon code) motivating why it's needed.
Current failure: