Detecting whether the -opt flag was passed to cppwinrt.exe: Using __has_include

1 · Raymond Chen · June 24, 2019, 3:16 p.m.
I was upgrading the Window UWP Samples repo to take advantage of the new -opt flag introduced in C++/WinRT 2.0. This provides performance improvements for accessing static class members, and avoids having to register the type in your manifest for strictly in-module consumption. The post Detecting whether the <CODE>-opt</CODE> flag was passed to <CODE>cppwinrt.exe</CODE>: Using <CODE>__has_include</CODE> appeared first on The Old New Thing....