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

Ross Finlayson finlayson at live555.com
Thu Aug 24 22:51:53 PDT 2023



> On Aug 24, 2023, at 9:00 PM, Jörg Dommaschk via live-devel <live-devel at us.live555.com> 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 version number 202002L is the wrong threshold.  For example, the code compiles OK with __cplusplus defined as 201402L

I would need to know the correct version number to use as the threshold.


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/




More information about the live-devel mailing list