summaryrefslogtreecommitdiffstats
path: root/Source/cmListFileCache.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-09-24 14:54:18 (GMT)
committerBrad King <brad.king@kitware.com>2018-10-17 18:20:34 (GMT)
commitf1dd0eeaaf264ebb35b048f423c66296e6967d16 (patch)
tree3d483427df4dec4336ade1a2ed648a3c9d7565b4 /Source/cmListFileCache.cxx
parent4fc8e8b023c4ebce94a8baacbc086b72ec399aba (diff)
downloadCMake-f1dd0eeaaf264ebb35b048f423c66296e6967d16.zip
CMake-f1dd0eeaaf264ebb35b048f423c66296e6967d16.tar.gz
CMake-f1dd0eeaaf264ebb35b048f423c66296e6967d16.tar.bz2
cmListFileCache: Add wrapper template for values with a backtrace
Diffstat (limited to 'Source/cmListFileCache.cxx')
-rw-r--r--Source/cmListFileCache.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmListFileCache.cxx b/Source/cmListFileCache.cxx
index 4d7e1e2..d79afc6 100644
--- a/Source/cmListFileCache.cxx
+++ b/Source/cmListFileCache.cxx
@@ -9,10 +9,10 @@
#include "cmSystemTools.h"
#include "cmake.h"
-#include <algorithm>
#include <assert.h>
#include <memory>
#include <sstream>
+#include <utility>
cmCommandContext::cmCommandName& cmCommandContext::cmCommandName::operator=(
std::string const& name)
@@ -474,3 +474,8 @@ bool operator!=(const cmListFileContext& lhs, const cmListFileContext& rhs)
{
return !(lhs == rhs);
}
+
+std::ostream& operator<<(std::ostream& os, BT<std::string> const& s)
+{
+ return os << s.Value;
+}