Fix eagerness bug in FOLLY_CREATE_STATIC_MEMBER_INVOKER
Summary: This patch performs SFINAE-friendly invocation in `FOLLY_CREATE_STATIC_MEMBER_INVOKER` in order for invocability tests to return `false` in the situation where the member is not even available. For example, given: ``` FOLLY_CREATE_STATIC_MEMBER_INVOKER(foo_invoker, foo); ``` With this diff, something like `std::is_invocable_v<foo_invoker, HasNoFoo>` yields `false` rather than a compilation error. This brings `FOLLY_CREATE_STATIC_MEMBER_INVOKER` in line with `FOLLY_CREATE_FREE_INVOKER` and `FOLLY_CREATE_MEMBER_INVOKER`. Reviewed By: yfeldblum Differential Revision: D25878262 fbshipit-source-id: 150ae6b2c71941317bc02de20720fed014639bf5
Showing
Please register or sign in to comment