-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Closed
Labels
kind: bugplatform: visual studiorelated to MSVCrelated to MSVCsolution: invalidthe issue is not related to the librarythe issue is not related to the library
Description
- Visual Studio 2015 Update 2
- JSON for Modern C++ 1.1.0
Compiler errors:
jsonstream\main.cpp(32): error C2664: 'nlohmann::basic_json<std::map,std::vector,std::string,bool,int64_t,double,std::allocator>::basic_json(nlohmann::basic_json<std::map,std::vector,std::string,bool,int64_t,double,std::allocator> &&) noexcept': cannot convert argument 1 from 'std::stringstream' to 'const nlohmann::basic_json<std::map,std::vector,std::string,bool,int64_t,double,std::allocator>::value_t'
jsonstream\jsonstream\main.cpp(32): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
jsonstream\main.cpp(55): error C2664: 'nlohmann::basic_json<std::map,std::vector,std::string,bool,int64_t,double,std::allocator>::basic_json(nlohmann::basic_json<std::map,std::vector,std::string,bool,int64_t,double,std::allocator> &&) noexcept': cannot convert argument 1 from 'std::stringstream' to 'std::initializer_list<nlohmann::basic_json<std::map,std::vector,std::string,bool,int64_t,double,std::allocator>>'
jsonstream\jsonstream\main.cpp(55): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
Also unable to pass a std::ifstream object as well.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind: bugplatform: visual studiorelated to MSVCrelated to MSVCsolution: invalidthe issue is not related to the librarythe issue is not related to the library