Commit 8f0a5d84 authored by Brad King's avatar Brad King Committed by Stephen Kelly
Browse files

cmState: Fix compilation on IBM XL compiler

Delay use of the PositionType constructor until after SnapshotDataType
is fully defined.
parent 9644a2d1
......@@ -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)
......
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment