[libcxx-commits] [PATCH] D58201: Make std::memory_order an enum class (P0439R0)

Zoe Carver via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Feb 13 12:49:45 PST 2019


zoecarver created this revision.
zoecarver added reviewers: ldionne, mclow.lists, howard.hinnant.
Herald added subscribers: libcxx-commits, jdoerfert, jfb.

Change `memory_order` to an `enum class` and fix all references to it (which expect it to implicitly cast to an int).

For reference: P0439R0 <http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0439r0.html>.


Repository:
  rCXX libc++

https://reviews.llvm.org/D58201

Files:
  include/atomic
  src/experimental/memory_resource.cpp
  test/std/atomics/atomics.order/memory_order.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58201.186721.patch
Type: text/x-patch
Size: 14686 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20190213/430a4ad6/attachment-0001.bin>


More information about the libcxx-commits mailing list