23 Aug
2020
23 Aug
'20
9:43 p.m.
Gesendet: Sonntag, 23. August 2020 um 23:16 Uhr Von: "Peter Dimov via Boost"
Mike wrote:
And for a wrapper module, what I have in mind is something like:
module; #include
export module Boost.Variant; namespace boost { export using boost::variant; }
Or you could just use `import
` and not need any wrappers.
That's why I previously said
Make sure your headers can be used as header units and/or provide a wrapper module for each library.
A wrapper module has the advantage, that it creates a named module and only exports what is explicitly specified, whereas "just" making sure the headers are importable is much easier to do, but doesn't provide the same level of isolation.