You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
static_assert(std::is_void_v<T> /* dependent_false */, "To use classic COM interfaces, you must compile with -fms-extensions and include <unknwn.h> before including C++/WinRT headers.");
123
+
#ifdef __clang__
124
+
#if !__has_declspec_attribute(uuid)
125
+
static_assert(std::is_void_v<T> /* dependent_false */, "To use classic COM interfaces, you must compile with -fms-extensions.");
126
+
#endif
127
+
128
+
#ifndef WINRT_IMPL_IUNKNOWN_DEFINED
129
+
static_assert(std::is_void_v<T> /* dependent_false */, "To use classic COM interfaces, you must include <unknwn.h> before including C++/WinRT headers.");
130
+
#endif
131
+
#else// MSVC won't hit this struct, so we can safely assume everything that isn't Clang isn't supported
132
+
static_assert(std::is_void_v<T> /* dependent_false */, "Classic COM interfaces are not supported with this compiler.");
0 commit comments