Skip to content

Commit 3249935

Browse files
committed
cast explicit dtor call expr to void because msvc
1 parent 38f4ec1 commit 3249935

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/stdexec/__detail/__variant.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ namespace stdexec {
8383
STDEXEC_ATTRIBUTE(host, device) void __destroy() noexcept {
8484
auto __index = std::exchange(__index_, __variant_npos);
8585
if (__variant_npos != __index) {
86-
((_Is == __index ? static_cast<_Ts *>(__get_ptr())->~_Ts() : void(0)), ...);
86+
((_Is == __index ? (void) static_cast<_Ts *>(__get_ptr())->~_Ts() : void(0)), ...);
8787
}
8888
}
8989

0 commit comments

Comments
 (0)