Re: [committed] libstdc++: Do not include in concurrency headers

2023-01-16 Thread Rainer Orth
Hi Jonathan, > On Fri, 13 Jan 2023 at 16:39, Jonathan Wakely wrote: >> >> On Fri, 13 Jan 2023 at 15:08, Rainer Orth wrote: >> > >> > Hi Jonathan, >> > >> > > The , , and headers use >> > > std::errc constants, but don't use std::system_error itself. They only >> > > use the

Re: [committed] libstdc++: Do not include in concurrency headers

2023-01-13 Thread Jonathan Wakely via Gcc-patches
On Fri, 13 Jan 2023 at 16:39, Jonathan Wakely wrote: > > On Fri, 13 Jan 2023 at 15:08, Rainer Orth wrote: > > > > Hi Jonathan, > > > > > The , , and headers use > > > std::errc constants, but don't use std::system_error itself. They only > > > use the __throw_system_error(int) function, which is

Re: [committed] libstdc++: Do not include in concurrency headers

2023-01-13 Thread Jonathan Wakely via Gcc-patches
On Fri, 13 Jan 2023 at 15:08, Rainer Orth wrote: > > Hi Jonathan, > > > The , , and headers use > > std::errc constants, but don't use std::system_error itself. They only > > use the __throw_system_error(int) function, which is defined in > > . > > > > By including the header for the errc

Re: [committed] libstdc++: Do not include in concurrency headers

2023-01-13 Thread Rainer Orth
Hi Jonathan, > The , , and headers use > std::errc constants, but don't use std::system_error itself. They only > use the __throw_system_error(int) function, which is defined in > . > > By including the header for the errc constants instead of the whole of > we avoid depending on the whole

[committed] libstdc++: Do not include in concurrency headers

2023-01-12 Thread Jonathan Wakely via Gcc-patches
Tested x86_64-linux and powerpc64le-linux. Pushed to trunk. -- >8 -- The , , and headers use std::errc constants, but don't use std::system_error itself. They only use the __throw_system_error(int) function, which is defined in . By including the header for the errc constants instead of the