cpprestsdk
cpprestsdk copied to clipboard
inaccessible member function ON G++
Thank you so much for this nice code. By the way, When I compile this on Linux(GCC) there are some errors accessing the protected member function. But, On Windows(VC++) it works fine.
Here is the error description.
function "web::json::details::_Value::format" (declared at line 1423 of "......json.h") is inaccessible C/C++(265)
‘virtual void web::json::details::_Value::format(std::__cxx11::basic_string
json_serialization.cpp: In member function ‘void web::json::value::format(std::__cxx11::basic_string
In file included from json_serialization.cpp:14:
/json.h: note: declared protected here
virtual void format(std::basic_string
So, When modify the member function to Public, no error occurs.