summaryrefslogtreecommitdiffstats
path: root/Source/cmVariableWatch.h
diff options
context:
space:
mode:
authorJustin Berger <j.david.berger@gmail.com>2017-07-22 23:23:11 (GMT)
committerBrad King <brad.king@kitware.com>2017-09-21 15:50:57 (GMT)
commit4c0edbd725976f947398f1513cef3f36ec05cc5f (patch)
tree804b60e16591750cc6d270a6206646df3f34c5a5 /Source/cmVariableWatch.h
parent28d2c6ef7e807c53a8bee76c86525f254fc4c54c (diff)
downloadCMake-4c0edbd725976f947398f1513cef3f36ec05cc5f.zip
CMake-4c0edbd725976f947398f1513cef3f36ec05cc5f.tar.gz
CMake-4c0edbd725976f947398f1513cef3f36ec05cc5f.tar.bz2
variable_watch: Made it safe to add/remove watches in access callbacks
Diffstat (limited to 'Source/cmVariableWatch.h')
-rw-r--r--Source/cmVariableWatch.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmVariableWatch.h b/Source/cmVariableWatch.h
index 05a0a56..27d1b12 100644
--- a/Source/cmVariableWatch.h
+++ b/Source/cmVariableWatch.h
@@ -6,6 +6,7 @@
#include "cmConfigure.h" // IWYU pragma: keep
#include <map>
+#include <memory> // IWYU pragma: keep
#include <string>
#include <vector>
@@ -79,7 +80,7 @@ protected:
}
};
- typedef std::vector<Pair*> VectorOfPairs;
+ typedef std::vector<std::shared_ptr<Pair>> VectorOfPairs;
typedef std::map<std::string, VectorOfPairs> StringToVectorOfPairs;
StringToVectorOfPairs WatchMap;