Skip to content

C2664 (C++/CLR) cannot convert 'nullptr' to 'nullptr &&' #987

Description

@freanux

I'm working on a C++ to C# wrapper using C++/CLR and MS VS Community 2015 (Version 14.0.25431.01 Update 3).

Compiling the single header json.hpp fails with described error in the title. The json.hpp version in 3.1.1.

I uploaded a tiny test project to reproduce the compile error:
TestLibrary.zip

For me a possible workaround is to encapsulate the json object and return the dump()ed string to pass to the C++/CLR and pass that string to the C# world instead of passing the dump()ed string from my C++/CLR class to the C# environment.

Thanks in advance.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions