json.hpp won;t compile VS2019 CLR/CLI app but does in console app #1754
Labels
kind: question
state: stale
the issue has not been updated in a while and will be closed automatically soon unless it is updated
I am very new to c++ and trying to use the json.hpp within a CLR/CLI app but the compiler is having trouble and returning '': cannot convert from 'std::basic_string<char,std::char_traits,std::allocator>' to 'BasicJsonType'
with [ BasicJsonType=nlohmann::basic_jsonstd::map,std::vector,std::string,bool,int64_t,uint64_t,double,std::allocator,nlohmann::adl_serializer ] @ the bool key(string_t% val)
but when compiled in a console app there are no issues
bool key(string_t& val)
{
BasicJsonType k = BasicJsonType(val); <<<<<<<<<<<<<<<<<<<ERROR
I have tried copying the single include code directly into a new hpp file, building under Default, C++14, C++17
Windows 10 SDK latest, Visual Studio 2019 v142, C++ Default
Receive the same error in 3.5,3.6 and 3.7 versions
The text was updated successfully, but these errors were encountered: