Код: Выделить всё
#include
#define WIN32_LEAN_AND_MEAN
#define NOMINMAX
#include
//in windows.h
//#define GetObject GetObjectW
IJsonValue jsonValue = ...;
auto jsonObject = jsonValue.GetObject();
Я пытался использовать трюк `int max = (std::numeric_limits::max)();`, но всё равно получал ошибку `GetObjectW````
auto jsonObject = jsonValue.(winrt::Windows::Data::Json::IJsonValue::GetObject)();
```
Есть идеи?
Подробнее здесь: https://stackoverflow.com/questions/784 ... ws-h-macro