Rename LockTraits.h invokers to work around Clang 7 issue
Summary: Clang 7 seems to have trouble with `FOLLY_CREATE_MEMBER_INVOKER()` on Windows targets if the invoker's name is the same as the invocable name. It's spewing `-Wmicrosoft-explicit-constructor-call` warnings and the `static_assert`s in LockTraits.h are failing. As a workaround, we can rename the LockTraits.h invokers to use an `_invoker` suffix. See https://gcc.godbolt.org/z/j4qRd9 for a demonstration of the issue. Reviewed By: vitaut Differential Revision: D18626335 fbshipit-source-id: c9147daaa10b02b0692c32963f9ede8cc645e329
Showing
Please register or sign in to comment