Summary: | rvalue optimizations | ||
---|---|---|---|
Product: | UPPAAL | Reporter: | Marius Mikučionis <marius> |
Component: | Engine | Assignee: | Marius Mikučionis <marius> |
Status: | ASSIGNED --- | ||
Severity: | enhancement | ||
Priority: | P2 | ||
Version: | unspecified | ||
Hardware: | PC | ||
OS: | All | ||
Architecture: |
Description
Marius Mikučionis
2010-05-27 12:56:25 CEST
The code migrated to C++17, so the move semantics is on by default. The code needs to be reviewed which classes could benefit. A brief summary: The move operators are provided by default if copy ctor/assignment and dtor are not defined. These operators and the destructor need to be noexcept for the `std::vector` to benefit from the move. |