mirror of
https://github.com/tristanpenman/valijson.git
synced 2024-12-12 10:13:51 +01:00
Add char* constructor to RapidJsonFrozenValue to further remove ambiguity
This commit is contained in:
parent
f647e75557
commit
04cebebcfd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user