Am 05.04.2022 um 19:47 schrieb Niall Douglas via Boost:
On 05/04/2022 18:34, Peter Dimov via Boost wrote:
My ambitions are modest. All I want is to be able to do this:
#if BOOST_MODULES_SUPPORTED
import <cstddef>; import
; import <exception>; import ; import <utility>; import <functional>; // std::hash import <cstdint>; import <iosfwd>; #else
#include <cstddef> #include
#include <exception> #include #include <utility> #include <functional> // std::hash #include <cstdint> #include <iosfwd> #endif The compiler will automatically as-if do the above for you if Modules are enabled for standard library headers. It's clever enough to interpret an include as an import. So no need.
Right, but this part of the standard is optional. MSVC has it but not the others, right? Ciao Dani -- PGP/GPG: 2CCB 3ECB 0954 5CD3 B0DB 6AA0 BA03 56A1 2C4638C5