Commit 3291f635 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Consistent void return-type checks in DistributedMutex

Summary: [Folly] Consistent `void` return-type checks in `DistributedMutex`. `const void` is a different type from `void`, but both match the `std::is_void` predicate.

Reviewed By: aary

Differential Revision: D14638815

fbshipit-source-id: 96d1e18dfe1026b3881dafe5ceb816a8dd3add08
parent bbe656da
...@@ -404,7 +404,7 @@ class RequestWithoutReturn { ...@@ -404,7 +404,7 @@ class RequestWithoutReturn {
// implicit conversion // implicit conversion
template <typename Func> template <typename Func>
using Request = std::conditional_t< using Request = std::conditional_t<
std::is_same<folly::invoke_result_t<const Func&>, void>::value, std::is_void<folly::invoke_result_t<const Func&>>::value,
RequestWithoutReturn<Func>, RequestWithoutReturn<Func>,
RequestWithReturn<Func>>; RequestWithReturn<Func>>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment