浏览代码

stringapi: Add string overload for the Def struct

Ben Boeckel 11 年之前
父节点
当前提交
11ed3e2cfe
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Source/cmDefinitions.h

+ 1 - 0
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;
   };