Operation method of Visual Studio 2022 Preview using C++20Module
This article shows you how to use C++20Module in Visual Studio 2022 Preview. The content is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
As a major feature of Visual Studio 20, it is said that Module can greatly speed up the compilation of projects. Recently, Microsoft has launched a preview version of Visual Studio 20, along with the latest tool chain for Craft 20.
The experience project is very simple, just two small files:
1. Hello.ixx
Export module mo.hello.cpp; export auto hello () {return "hello cpp module";}
2. Main.cpp
Import mo.hello.cpp;import std.core; int main () {std::cout