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:
Andreas Lauser
2013-11-16 10:10:42 +01:00
parent 72bc625357
commit 79c38f94b7

View File

@@ -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