-
- Downloads
No longer delete move constructor/assignment operator
We follow the advice given by Josuttis in his book about move semantics. Deleting those member fuctions can be a bug if we want to allow copy semantics, because overload resolution will no longer fallback to the copy constructor/assignment operator when given an rvalue. In particular, this explain why it was not possible to delete the move assignment operator of the StaticModel class.
Showing
- src/DataTree.hh 0 additions, 2 deletionssrc/DataTree.hh
- src/DynamicModel.hh 0 additions, 2 deletionssrc/DynamicModel.hh
- src/ExprNode.hh 0 additions, 2 deletionssrc/ExprNode.hh
- src/ModelEquationBlock.hh 0 additions, 4 deletionssrc/ModelEquationBlock.hh
- src/ModelTree.hh 0 additions, 2 deletionssrc/ModelTree.hh
- src/ParsingDriver.hh 0 additions, 4 deletionssrc/ParsingDriver.hh
- src/Statement.hh 0 additions, 2 deletionssrc/Statement.hh
- src/StaticModel.hh 0 additions, 7 deletionssrc/StaticModel.hh
- src/macro/Driver.hh 1 addition, 5 deletionssrc/macro/Driver.hh
Loading
Please register or sign in to comment