简体   繁体   中英

Using modules in c++20

I have this program I am trying to compile. Live here


import std.core;
int main()
{
    std::cout<<"ravioli";
}

I was reading about Modules in C++ 20 . The source has only information about running it on Microsoft C++ compiler. Has any other compiler implemented modules yet? If yes what additional flags do I need for this program to compile.

According to one of STL devs in Reddit , the stl modules like stl.core or stl.io are just a Microsoft thing and is intended as a starting point for a C++23 proposal. They're just a repackaging of the existing Standard Library with no organizational changes other than dividing them into five or so groups. You can found more about this in the Overview of modules in C++ or in the OpenSTD paper .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM