"benchmarking/vscode:/vscode.git/clone" did not exist on "675baa79d2434b8bb779859ad08a73b9c0c82fbe"
Commit 40fbd684 authored by rusty1s's avatar rusty1s
Browse files

switch condition no longer has type bool

parent d279d38a
......@@ -7,14 +7,11 @@
#define AT_DISPATCH_HAS_VALUE(optional_value, ...) \
[&] { \
switch (optional_value.has_value()) { \
case true: { \
if (optional_value.has_value()) { \
const bool HAS_VALUE = true; \
return __VA_ARGS__(); \
} \
case false: { \
} else { \
const bool HAS_VALUE = false; \
return __VA_ARGS__(); \
} \
} \
}()
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