diff options
| author | ADAM David Alan Martin <adam.martin@10gen.com> | 2019-07-27 10:52:46 -0400 |
|---|---|---|
| committer | ADAM David Alan Martin <adam.martin@10gen.com> | 2019-07-27 11:13:28 -0400 |
| commit | ca57a4d640aee04ef373a50b24e79d85f0bb91a0 (patch) | |
| tree | 12e465b472499631f7b2bd4ad7a1084b41ec2404 /src/mongo/executor/scoped_task_executor.cpp | |
| parent | 134a4083953270e8a11430395357fb70a29047ad (diff) | |
| download | mongo-ca57a4d640aee04ef373a50b24e79d85f0bb91a0.tar.gz | |
SERVER-40160 Remove `if_constexpr.h` header.
This header circumvented bad formatting which `clang-format-3.8`
imparted to `if constexpr`. Now `clang-format-7.0.1` imparts
a reasonable format to `if constexpr` so this header is not
needed anymore.
Diffstat (limited to 'src/mongo/executor/scoped_task_executor.cpp')
| -rw-r--r-- | src/mongo/executor/scoped_task_executor.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/executor/scoped_task_executor.cpp b/src/mongo/executor/scoped_task_executor.cpp index 6f2b4823139..a9b4e32dde8 100644 --- a/src/mongo/executor/scoped_task_executor.cpp +++ b/src/mongo/executor/scoped_task_executor.cpp @@ -247,10 +247,9 @@ private: // modify the status field. auto args = cargs; - IF_CONSTEXPR(std::is_same_v<ArgsT, CallbackArgs>) { + if constexpr (std::is_same_v<ArgsT, CallbackArgs>) { args.status = kShutdownStatus; - } - else { + } else { static_assert(std::is_same_v<ArgsT, RemoteCommandOnAnyCallbackArgs>, "_wrapCallback only supports CallbackArgs and " "RemoteCommandOnAnyCallbackArgs"); |
