stringapi: Add string overload for the Def struct

This commit is contained in:
Ben Boeckel 2014-02-21 19:06:54 -05:00 committed by Brad King
parent b3bf31a548
commit 11ed3e2cfe
1 changed files with 1 additions and 0 deletions

View File

@ -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;
};