{"action":"closed","issue":{"url":"https://api.github.com/repos/microsoft/cppwinrt/issues/457","repository_url":"https://api.github.com/repos/microsoft/cppwinrt","labels_url":"https://api.github.com/repos/microsoft/cppwinrt/issues/457/labels{/name}","comments_url":"https://api.github.com/repos/microsoft/cppwinrt/issues/457/comments","events_url":"https://api.github.com/repos/microsoft/cppwinrt/issues/457/events","html_url":"https://github.com/microsoft/cppwinrt/issues/457","id":540955057,"node_id":"MDU6SXNzdWU1NDA5NTUwNTc=","number":457,"title":"Support MSVC new preprocessor","user":{"login":"NN---","id":580536,"node_id":"MDQ6VXNlcjU4MDUzNg==","avatar_url":"https://avatars2.githubusercontent.com/u/580536?v=4","gravatar_id":"","url":"https://api.github.com/users/NN---","html_url":"https://github.com/NN---","followers_url":"https://api.github.com/users/NN---/followers","following_url":"https://api.github.com/users/NN---/following{/other_user}","gists_url":"https://api.github.com/users/NN---/gists{/gist_id}","starred_url":"https://api.github.com/users/NN---/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NN---/subscriptions","organizations_url":"https://api.github.com/users/NN---/orgs","repos_url":"https://api.github.com/users/NN---/repos","events_url":"https://api.github.com/users/NN---/events{/privacy}","received_events_url":"https://api.github.com/users/NN---/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-12-20T11:45:56Z","updated_at":"2019-12-20T16:56:49Z","closed_at":"2019-12-20T16:56:49Z","author_association":"NONE","body":"Macros are defined in a non standard way.\r\nhttps://devblogs.microsoft.com/cppblog/msvc-preprocessor-progress-towards-conformance\r\n\r\nFixed versions \r\n\r\n```cpp\r\n#define VA_STRINGIZE(...) DETAIL_VA_STRINGIZE(__VA_ARGS__)\r\n#define DETAILVA_STRINGIZE(...) #__VA_ARGS__\r\n\r\n\r\n\r\n#include <winrt/base.h>\r\n\r\n#define WINRT_WRAP(...) (__VA_ARGS__)\r\n\r\n#define WINRT_ASSERT_DECLARATION(M, R, ...) WINRT_ASSERT_DECLARATION_(M, R, ##__VA_ARGS__)\r\n\r\n#define WINRT_ASSERT_DECLARATION_(M, R, ...) \\\r\n{ \\\r\n    auto invocation = [](auto&& d, auto&&... params) -> decltype(R d.M(params...)) {}; \\\r\n    static_assert(winrt::impl::is_detected_v<winrt::impl::invoker_t, decltype(invocation), D, ##__VA_ARGS__>, \\\r\n        \"\\n\\n\\tC++/WinRT: Could not find method in implementation class:\\n\\t\\t\" #R \" \" #M \"(\" VA_STRINGIZE(__VA_ARGS__) \");\\n\"); \\\r\n}\r\n```"}}
{"actor":{"display_login":"kennykerr"}}