Re: [Live-devel] Building with C++ version less than 20

2023-08-24 Thread Ross Finlayson
> On Aug 24, 2023, at 10:51 PM, Ross Finlayson wrote: > > I’m willing to update the code to do something like this; however the version > number 202002L is the wrong threshold. For example, the code compiles OK > with __cplusplus defined as 201402L And the code also compiles OK for me on a

Re: [Live-devel] Building with C++ version less than 20

2023-08-24 Thread Ross Finlayson
> On Aug 24, 2023, at 9:00 PM, Jörg Dommaschk via live-devel > wrote: > > So something like > > #ifndef NO_STD_LIB && __cplusplus >= 202002L > //code using std::atomic_flag > #else > //the old logic > #endif I’m willing to update the code to do something like this; however the versio

[Live-devel] Building with C++ version less than 20

2023-08-24 Thread Jörg Dommaschk via live-devel
--- Begin Message --- Hello, I have recently built live555 from the latest version and was greeted with a compilation error, namely: BasicTaskScheduler.cpp:191:40: error: 'struct std::atomic_flag' has no member named 'test' This happens because that member test of std::atomic_flag has only