cmState: Fix compilation on IBM XL compiler
Delay use of the PositionType constructor until after SnapshotDataType is fully defined.
This commit is contained in:
parent
9644a2d11c
commit
8f0a5d84e3
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue