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.
Differential D58201
Make std::memory_order an enum class (P0439R0) zoecarver on Feb 13 2019, 12:46 PM. Authored by
Details 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.
Diff Detail
Event Timeline
Comment Actions Two small comments, LGTM otherwise (but would like one of the libc++ maintainers to sign off too).
Comment Actions
Comment Actions This LGTM, however I'll wait before merging this because this will conflict with the non-lockfree atomic patch. It is unfortunate, but I'd rather rebase this one on top of the non-lockfree atomic one than the other way around. The non-lockfree atomic patch is much larger and complicated. Comment Actions No worries, it doesn't make a difference to me when/how you commit it. I am just glad I don't have to deal with the merge conflicts :P Comment Actions Okay -- I've applied the other atomic patch, can you please rebase this one on top of the latest master? Sorry for the churn. Comment Actions That was fun :P It seems like this patch no longer effects src/experimental/memory_resource.cpp other than that it should be good to go. Comment Actions I made the changes I commented on when applying the diff. Thanks for the patch!
Comment Actions For info: Followed-up with https://reviews.llvm.org/D58966 to fix build break on GCC.
|