Actions
Bug #1252
closedFace::operator= does not work
Start date:
Due date:
% Done:
100%
Estimated time:
Description
Steps to reproduce:
- construct face1 and face2
- call
face1->operator=(face2)
- destruct face2
- invoke face2->setInterestFilter
Expected: no error
Actual: segfault
Files
Updated by Junxiao Shi almost 11 years ago
Face::operator= should be disabled to resolve this bug.
Updated by Junxiao Shi almost 11 years ago
CORRECTION
Steps to reproduce:
- construct face1 and face2
- call
face1->operator=(face2)
- destruct face2
- invoke
face1->setInterestFilter
Updated by Alex Afanasyev almost 11 years ago
Face must be nocopyable. There is no valid reason (and no clear logic how) face can be safely copied.
Updated by Junxiao Shi almost 11 years ago
Face class should derive from boost::noncopyable
, so that copy constructor and operator=
are disabled.
Updated by Alex Afanasyev almost 11 years ago
- Status changed from New to Code review
- Assignee set to Alex Afanasyev
- % Done changed from 0 to 100
Updated by Alex Afanasyev almost 11 years ago
- Status changed from Code review to Closed
Actions