Why am I getting the error message “This is only for weak ref support” when I try to create a C++/WinRT weak reference?
Источник: The Old New Thing
Источник: The Old New Thing
The Old New Thing
Why am I getting the error message "This is only for weak ref support" when I try to create a C++/WinRT weak reference?
A customer tried to obtain a weak reference from within a C++/WinRT class implementation by calling get_weak(). This normally works, but for some reason, the customer was getting the error winrt\base.h(7594,47): error C2338: This is only for weak ref support.…