Re: Using std types and functions within GCC

2024-03-15 Thread dkm--- via Gcc
March 15, 2024 at 2:00 PM, "Tom Tromey" wrote: > > > > "David" == David Malcolm via Gcc writes: > > > > David> For example, there's at > David> least one place where I'd have used std::optional, but that's C++14 and > David> so unavailable. > > FWIW, gdb had its own gdb::optional (which was

Re: Using std types and functions within GCC

2024-03-15 Thread Tom Tromey
> "David" == David Malcolm via Gcc writes: David> For example, there's at David> least one place where I'd have used std::optional, but that's C++14 and David> so unavailable. FWIW, gdb had its own gdb::optional (which was really just a stripped-down copy of the one from libstdc++) to fill e

Re: Using std types and functions within GCC

2024-03-14 Thread Jonathan Wakely via Gcc
On Thu, 14 Mar 2024 at 14:49, David Malcolm wrote: > > On Thu, 2024-03-14 at 13:28 +, Jonathan Wakely via Gcc wrote: > > On Thu, 14 Mar 2024 at 12:54, Pierrick Philippe > > wrote: > > > > > > Hi all, > > Hi Pierrick! It was good to meet you at FOSDEM. > > > > > > > I was wondering, is there

Re: Using std types and functions within GCC

2024-03-14 Thread David Malcolm via Gcc
On Thu, 2024-03-14 at 13:28 +, Jonathan Wakely via Gcc wrote: > On Thu, 14 Mar 2024 at 12:54, Pierrick Philippe > wrote: > > > > Hi all, Hi Pierrick! It was good to meet you at FOSDEM. > > > > I was wondering, is there any conventions or guidelines regarding > > the > > usage of types and

Re: Using std types and functions within GCC

2024-03-14 Thread Jonathan Wakely via Gcc
On Thu, 14 Mar 2024 at 12:54, Pierrick Philippe wrote: > > Hi all, > > I was wondering, is there any conventions or guidelines regarding the > usage of types and/or functions coming from the C++ std library within > the compiler? The relevant header needs to be included from the gcc/system.h head

Using std types and functions within GCC

2024-03-14 Thread Pierrick Philippe
Hi all, I was wondering, is there any conventions or guidelines regarding the usage of types and/or functions coming from the C++ std library within the compiler? To explicit a bit more, I am working on modification on the analyzer and might need to use a pair. Thank you for your time, Pierrick