Skip to content

生成的代码会有一个DBUG见详细,解决办法见详细,不知道这个改法好不好不过问题是解决了! #2

Description

@chenmingsf

C2664 “rapidjson::GenericValue<rapidjson::UTF8,rapidjson::MemoryPoolAllocatorrapidjson::CrtAllocator> ::GenericValue(rapidjson::GenericValue<rapidjson::UTF8,rapidjson::MemoryPoolAllocatorrapidjson::CrtAllocator> &&)” : 无法将参数 1 从“std::string”转换为“rapidjson::Type”

document.h 源代码
// RAPIDJSON_HAS_STDSTRING

#ifndef RAPIDJSON_HAS_STDSTRING
#ifdef RAPIDJSON_DOXYGEN_RUNNING
#define RAPIDJSON_HAS_STDSTRING 1 // force generation of documentation
#else
#define RAPIDJSON_HAS_STDSTRING 0 // no std::string support by default
#endif

修改方案:define RAPIDJSON_HAS_STDSTRING 0改为define RAPIDJSON_HAS_STDSTRING 1

// RAPIDJSON_HAS_STDSTRING

#ifndef RAPIDJSON_HAS_STDSTRING
#ifdef RAPIDJSON_DOXYGEN_RUNNING
#define RAPIDJSON_HAS_STDSTRING 1 // force generation of documentation
#else
#define RAPIDJSON_HAS_STDSTRING 1 // no std::string support by default
#endif

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions