cmState: Fix compilation on IBM XL compiler

Delay use of the PositionType constructor until after SnapshotDataType
is fully defined.
This commit is contained in:
Brad King 2015-07-23 09:11:37 -04:00 committed by Stephen Kelly
parent 9644a2d11c
commit 8f0a5d84e3
2 changed files with 8 additions and 1 deletions

View File

@ -803,6 +803,12 @@ cmState::Snapshot cmState::Pop(cmState::Snapshot originSnapshot)
return Snapshot(this, originSnapshot.Position->CallStackParent);
}
cmState::Snapshot::Snapshot(cmState* state)
: State(state)
, Position()
{
}
cmState::Snapshot::Snapshot(cmState* state, PositionType position)
: State(state),
Position(position)

View File

@ -43,7 +43,8 @@ public:
class Snapshot {
public:
Snapshot(cmState* state = 0, PositionType position = PositionType());
Snapshot(cmState* state = 0);
Snapshot(cmState* state, PositionType position);
void SetListFile(std::string const& listfile);