json: Compile error. Unable convert form nullptr to nullptr&&

I can not compile json.hpp.

error C2664: “BasicJsonType *nlohmann::detail::json_sax_dom_parser<BasicJsonType>::handle_value<nullptr>(Value &&)”: невозможно преобразовать аргумент 1 из “nullptr” в “nullptr &&”

problem code:

    bool null() override
    {
        handle_value(nullptr); 
        return true;
    }

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 17 (10 by maintainers)

Most upvoted comments

The problem was solved by disabling the CRL in the compiler settings