|
Boost : |
From: Chuanqi Xu (chuanqi.xcq_at_[hidden])
Date: 2024-12-23 03:25:36
> Also, vendors have made the std module available in C++20.
Yes. Given libstdc++ has std module too now. I think it makes sense to only import std in modules code. As someone mentioned somewhere else, it is slightly harder to maintain 3 modes:
1. traditional header modes.
2. modules modes with import std available.
3. modules modes with import std not available.
Given how important std module is, I think it makes sense to assume import std is available to reduce some maintain burden.
Thanks,
Chuanqi
------------------------------------------------------------------
From:René Ferdinand Rivera Morell via Boost <boost_at_[hidden]>
Send Time:2024 Dec. 23 (Mon.) 03:21
To:boost<boost_at_[hidden]>
Cc:"René Ferdinand Rivera Morell"<grafikrobot_at_[hidden]>; Peter Dimov<pdimov_at_[hidden]>
Subject:Re: [boost] Interest for C++20 modules support of boost officially
On Sun, Dec 22, 2024 at 9:30 AM Ruben Perez via Boost <boost_at_[hidden]>
wrote:
> > I was going to say that the same applies to the -std level, but it
> occurs to me
> > that in order to build and use modules, you need at least -std=c++20
> anyway
> > so most such issues won't manifest for now, until we get conditional uses
> > of C++23 or C++26.
>
> In the prototype I'm writing, it's C++23, since everything uses import
> std. As you have mentioned many times, that's the only way to cut
> build times.
>
Also, vendors have made the std module available in C++20.
-- -- René Ferdinand Rivera Morell -- Don't Assume Anything -- No Supongas Nada -- Robot Dreams - http://robot-dreams.net <http://robot-dreams.net > _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost <http://lists.boost.org/mailman/listinfo.cgi/boost >
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk