@@ -754,7 +754,6 @@ struct _Variant_construct_visitor { // visitor that constructs the same alternat
754
754
disjunction_v<bool_constant<_Idx == variant_npos>, is_nothrow_constructible<remove_reference_t<_Ty>, _Ty>>) {
755
755
// initialize _Idx-th item in _Self from _Source
756
756
_STL_INTERNAL_CHECK(_Self.valueless_by_exception());
757
- (void) _Source; // TRANSITION, DevCom-1004719
758
757
if constexpr (_Idx != variant_npos) {
759
758
_Construct_in_place(_Self._Storage(), integral_constant<size_t, _Idx>{}, static_cast<_Ty&&>(_Source._Val));
760
759
_Self._Set_index(_Idx);
@@ -777,7 +776,6 @@ struct _Variant_assign_visitor { // visitor that implements assignment for varia
777
776
is_nothrow_constructible<_Remove_cvref_t<_Ty>, _Ty>>>) {
778
777
// assign the _Idx-th alternative of _Self from _Source
779
778
if constexpr (_Idx == variant_npos) { // assign from valueless _Source
780
- (void) _Source; // TRANSITION, DevCom-1004719
781
779
_Self._Reset();
782
780
} else {
783
781
if (_Self._Which == _Idx) { // same alternative: assign directly
@@ -1349,7 +1347,6 @@ struct _Variant_relop_visitor2 { // evaluate _Op with the contained value of two
1349
1347
if constexpr (_Idx != variant_npos) {
1350
1348
return _Op{}(_Variant_raw_get<_Idx>(_Left), _Right._Val);
1351
1349
} else { // return whatever _Op returns for equal values
1352
- (void) _Right; // TRANSITION, DevCom-1004719
1353
1350
return _Op{}(0, 0);
1354
1351
}
1355
1352
}
@@ -1475,7 +1472,6 @@ struct _Variant_dispatcher<index_sequence<_Is...>> {
1475
1472
template <class _Ret, class _Callable, class... _Types, bool _Any_valueless = ((_Is == 0) || ...)>
1476
1473
_NODISCARD static constexpr _Ret _Dispatch2(_Callable&& _Obj, _Types&&... _Args) {
1477
1474
if constexpr (_Any_valueless) {
1478
- (void) _Obj; // TRANSITION, DevCom-1004719
1479
1475
((void) _Args, ...); // TRANSITION, DevCom-1004719
1480
1476
_Throw_bad_variant_access();
1481
1477
}
0 commit comments