Add char* constructor to RapidJsonFrozenValue to further remove ambiguity

This commit is contained in:
Tristan Penman 2015-03-23 17:37:21 +11:00
parent f647e75557
commit 04cebebcfd

View File

@ -219,6 +219,11 @@ class RapidJsonFrozenValue: public FrozenValue
{ {
public: public:
RapidJsonFrozenValue(const char *str)
{
value.SetString(str, allocator);
}
RapidJsonFrozenValue(const std::string &str) RapidJsonFrozenValue(const std::string &str)
{ {
value.SetString(str.c_str(), (unsigned int)str.length(), allocator); value.SetString(str.c_str(), (unsigned int)str.length(), allocator);