[libcxx-commits] [PATCH] D115995: [libcxx] Add deprecation notices to macros deprecated in P0883R2

Raul Tambre via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Dec 21 11:55:35 PST 2021


tambre added a comment.

In D115995#3205319 <https://reviews.llvm.org/D115995#3205319>, @Quuxplusone wrote:

> Okay, now that I'm hitting this in a real codebase, I'm stumped as to what the (WG21 and/or libc++) recommendation is, here. `ATOMIC_FLAG_INIT` is //required// up-to-and-including C++17, and then //deprecated// in-and-above C++20? So if I have code in my codebase today like

I don't see why you'd think using the macro would be required.

In D115995#3205319 <https://reviews.llvm.org/D115995#3205319>, @Quuxplusone wrote:

> How am I supposed to eliminate the deprecation warning?

Explictly init to `false`. If C++20 and higher, then you can rely on the default constructor.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D115995/new/

https://reviews.llvm.org/D115995



More information about the libcxx-commits mailing list