In XQilla 2.2.0 the copy constructor of Result (src/runtime/Result.cpp)
doesn't really creates a copy: The old instance becomes invalid.
I'm not sure, what's the reason for this behaviour, but it is unexpected. A
copy constructor should consider its argument as constant!
How can I create a copy of Result then?
Result::Result(const Result &o) : _impl(o._impl)
{
if(_impl) {
_impl->setResultPointer(this);
const_cast<Result&>(o)._impl = 0;
}
}
Nobody/Anonymous
None
None
Public
|
Date: 2009-10-27 11:15 Hi Robert, |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2009-10-27 11:15 | jpcs |
| resolution_id | None | 2009-10-27 11:15 | jpcs |
| allow_comments | 1 | 2009-10-27 11:15 | jpcs |
| close_date | - | 2009-10-27 11:15 | jpcs |