Boost logo

Boost :

From: Mike (mike.dev_at_[hidden])
Date: 2020-08-23 21:33:50


> Gesendet: Sonntag, 23. August 2020 um 21:43 Uhr
> Von: "Ville Voutilainen via Boost" <boost_at_[hidden]>
> An: "boost_at_[hidden] List" <boost_at_[hidden]>
> Cc: "Ville Voutilainen" <ville.voutilainen_at_[hidden]>
> Betreff: Re: [boost] Modules
>
> On Sun, 23 Aug 2020 at 22:34, Zach Laine via Boost
> <boost_at_[hidden]> wrote:
> >
> > On Sun, Aug 23, 2020 at 1:35 PM Mike via Boost <boost_at_[hidden]> wrote:
> > >
> > > Could you maybe point me to the relevant location in the standard? A quick test with
> > > compiler explorer (https://godbolt.org/z/EP18s1) turns not up any errors,
> > > but of course I doubt any compiler implements modules completely to spec yet.
> >
> > No, because it looks like that changed! The rule I had in my head is
> > from a previous version of the feature. Sorry for the noise.
>
> It is, however, worth noting that if you have, say, 16 different
> possible preprocessor
> outputs, you can just ship one header with the preprocessor
> conditionals that with their
> different values give you 16 programs, but you need to ship 16 modules
> to get the same
> result in a modular world.

Correct me if I'm wrong, but you can still ship a single module source file with all the conditional. You would need 16 different versions of the cmi (bmi) if you wanted to ship them at all (my understanding is that this is not going to be recommended practice.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk