mirror of
https://github.com/tristanpenman/valijson.git
synced 2025-01-06 00:31:11 +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:
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user