From 04cebebcfd1ca487a58cddcc4f69eddb8af1e447 Mon Sep 17 00:00:00 2001 From: Tristan Penman Date: Mon, 23 Mar 2015 17:37:21 +1100 Subject: [PATCH] Add char* constructor to RapidJsonFrozenValue to further remove ambiguity --- include/valijson/adapters/rapidjson_adapter.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/valijson/adapters/rapidjson_adapter.hpp b/include/valijson/adapters/rapidjson_adapter.hpp index 4eb21f4..f57a3b5 100644 --- a/include/valijson/adapters/rapidjson_adapter.hpp +++ b/include/valijson/adapters/rapidjson_adapter.hpp @@ -219,6 +219,11 @@ class RapidJsonFrozenValue: public FrozenValue { public: + RapidJsonFrozenValue(const char *str) + { + value.SetString(str, allocator); + } + RapidJsonFrozenValue(const std::string &str) { value.SetString(str.c_str(), (unsigned int)str.length(), allocator);