cpprestsdk
cpprestsdk copied to clipboard
fundatmental issue - __cplusplus_winrt != UWP
The library has genesis with support of C++/CX and assumes UWP is C++/CX and is replete with __cplusplus_winrt.
Which should'nt be the case as there are other c++ variants like cppwinrt. How do leverage this lib in cppwinrt context - and yet be binding to UWP apis not win32 apis.
Should this library code be converted from
#if __cplusplus_winrt
#endif
to
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_PC_APP)
#endif
Looks like this issue prevents microsoft-signalr from using the cpprestsdk on UWP.
I think it should be
#if WINAPI_FAMILY == WINAPI_FAMILY_PC_APP
#endif
since __cplusplus_winrt means UWP only while WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_PC_APP) is UWP + Desktop