Parker-Lenhard: work around a debug mode bug of GCC 4.4
The resize() method for std::vector seems to copy an uninitialized object for the new objects in the array on GCC 4.4. This means that we should not assume that the copied objects are finalized in the Parker-Lenhard parameters. Strangely enough this only seems to affect older GCCs (at least 4.4) and only in debug mode...
This commit is contained in:
@@ -58,8 +58,8 @@ public:
|
||||
ParkerLenhardParams(const ParkerLenhardParams &p)
|
||||
{
|
||||
currentSnr_ = 0;
|
||||
SwrPc_ = p.SwrPc();
|
||||
mdc_ = new ScanningCurve(p.SwrPc());
|
||||
SwrPc_ = p.SwrPc_;
|
||||
mdc_ = new ScanningCurve(SwrPc_);
|
||||
pisc_ = csc_ = NULL;
|
||||
|
||||
#ifndef NDEBUG
|
||||
|
||||
Reference in New Issue
Block a user