summaryrefslogtreecommitdiffstats
path: root/Source/cmDefinitions.h
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2014-02-22 00:06:54 (GMT)
committerBrad King <brad.king@kitware.com>2014-03-08 18:05:38 (GMT)
commit11ed3e2cfe70e7d9d5a8e1f8e24fa61bbf6420b0 (patch)
tree8f29bb399bbecb943e51d6ec6fa1188761b19774 /Source/cmDefinitions.h
parentb3bf31a5488a19ea3c357e346b882a2ca84c63b6 (diff)
downloadCMake-11ed3e2cfe70e7d9d5a8e1f8e24fa61bbf6420b0.zip
CMake-11ed3e2cfe70e7d9d5a8e1f8e24fa61bbf6420b0.tar.gz
CMake-11ed3e2cfe70e7d9d5a8e1f8e24fa61bbf6420b0.tar.bz2
stringapi: Add string overload for the Def struct
Diffstat (limited to 'Source/cmDefinitions.h')
-rw-r--r--Source/cmDefinitions.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmDefinitions.h b/Source/cmDefinitions.h
index 4c1ad0a..d615fb0 100644
--- a/Source/cmDefinitions.h
+++ b/Source/cmDefinitions.h
@@ -59,6 +59,7 @@ private:
public:
Def(): std_string(), Exists(false) {}
Def(const char* v): std_string(v?v:""), Exists(v?true:false) {}
+ Def(const std_string& v): std_string(v), Exists(true) {}
Def(Def const& d): std_string(d), Exists(d.Exists) {}
bool Exists;
};