diff options
author | Brad King <brad.king@kitware.com> | 2015-07-23 13:11:37 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-07-25 12:52:05 (GMT) |
commit | 8f0a5d84e3fa894c687089d5f6dd6463c47968d8 (patch) | |
tree | e55b8384fa10fcf008814779cacc570008ea03e4 /Source | |
parent | 9644a2d11c06a547c82097028a86bff976f12040 (diff) | |
download | CMake-8f0a5d84e3fa894c687089d5f6dd6463c47968d8.zip CMake-8f0a5d84e3fa894c687089d5f6dd6463c47968d8.tar.gz CMake-8f0a5d84e3fa894c687089d5f6dd6463c47968d8.tar.bz2 |
cmState: Fix compilation on IBM XL compiler
Delay use of the PositionType constructor until after SnapshotDataType
is fully defined.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmState.cxx | 6 | ||||
-rw-r--r-- | Source/cmState.h | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/Source/cmState.cxx b/Source/cmState.cxx index 9cbb841..d73148d 100644 --- a/Source/cmState.cxx +++ b/Source/cmState.cxx @@ -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) diff --git a/Source/cmState.h b/Source/cmState.h index acd23a5..17ee6ec 100644 --- a/Source/cmState.h +++ b/Source/cmState.h @@ -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); |