8000 rapidjson::Value::Get<std::string>() may returns wrong data · Issue #680 · Tencent/rapidjson · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
rapidjson::Value::Get<std::string>() may returns wrong data #680
Closed
@niukuo

Description

@niukuo

`

const char str[] = "value nonvalue";
rapidjson::Value value(rapidjson::StringRef(str, 5));
cout << value.Get<std::string>() << endl;

`

output
value nonvalue

expect output
value

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0