Replies: 2 comments 1 reply
-
Unfortunately, no. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Also, note that officially there is no statement denying you cannot use both precompiled headers and modules. However, from my experience, it does not work properly if you refer to a type defined in a header that's included in PCH from a module. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm just starting to learn Windows C++ development. When I create a project in Visual Studio, I like to set the C++ version to
/std:c++latest
, and I want to use modules whenever I can. I created a new project using the template: "Blank App, Packaged (WinUI 3 in Desktop)". I see it uses apch.h
precompiled header.This page in MS docs claims that modules are an improvement over pre-compiled headers. Is there a way to replace the
pch.h
here and use modules instead? If I just turn off the setting, I think I see the compilation take a lot longer. I'm not sure how one would arrange files and imports to replace (if possible) the pch.h here.Beta Was this translation helpful? Give feedback.
All reactions