On Tue, Jun 2, 2026 at 11:01 PM Jonathan Wakely <[email protected]> wrote: > > On Tue, 2 Jun 2026 at 15:59, Yuao Ma <[email protected]> wrote: > > > > Hi! > > > > This patch makes std::priority_queue constexpr as part of P3372R3. I > > am unsure whether I should add the FTM here; since the constexpr > > support for std::queue isn't complete yet, I have omitted the FTM from > > this patch. > > Yes, that's the correct choice, thanks. > > > Tested on x86_64-linux. OK for trunk? > > > > Additionally, regarding the implementation strategy for other standard > > containers like std::list, it seems inevitable that we will need to > > move some function implementations (like _List_node_base) from the .cc > > files to the headers. This looks like an ABI break. Is this > > acceptable? > > No. It needs to be done without ABI breaks (which is possible, but > awkward and complex). >
BTW, could you elaborate more on how to achieve this in general? The only approach I can think of is using attributes like noinline and default visibility.
