Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
torch-sparse
Commits
40fbd684
Commit
40fbd684
authored
Feb 03, 2020
by
rusty1s
Browse files
switch condition no longer has type bool
parent
d279d38a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
csrc/cpu/utils.h
csrc/cpu/utils.h
+2
-5
No files found.
csrc/cpu/utils.h
View file @
40fbd684
...
@@ -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__(); \
} \
} \
} \
}()
}()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment