Should I be using C++ modules instead of #include?

  c++, c++20, import, module

I’m a new C++ learner, and I’ve been thought to use #import and header files to import files from other libraries or files (such as the stdlib). However, I recently came across "modules" in C++ 20. Should I be using modules instead of #import?

Furthermore, if I should be using modules, are there still benefits to using a .h file + header guard + .cpp file instead of just importing a module from a .cpp file? The only benefit I can think off the top of my head is abstraction.

Source: Windows Questions C++

LEAVE A COMMENT