how to use standard library with C++ modules? (eg: `import std.io`)
问题 The basic example given in How do I use C++ modules in Clang? works for me but doesn't import the standard library (eg via import std.stdio; ); after going over http://clang.llvm.org/docs/Modules.html it wasn't clear how to use the standard library in a C++ module, eg: // foo.cppm: export module foo; // works: #include <stdio.h> // none of these work: import std.stdio; import std.io; import std; export void test_foo(){ printf("hello world\n"); } this gives an error: clang++ -std=c++17