Commit 40fbd684 authored by rusty1s's avatar rusty1s
Browse files

switch condition no longer has type bool

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