Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

common/swap: remove default value for swap type internal storage

Weiyi Wangbed349ba51fa
diff --git a/src/common/swap.h b/src/common/swap.h
index 97aacb4dc9..4b82865fe7 100644
--- a/src/common/swap.h
+++ b/src/common/swap.h
@@ -172,7 +172,7 @@ struct swap_struct_t {
using swapped_t = swap_struct_t;
protected:
- T value = T();
+ T value;
static T swap(T v) {
return F::swap(v);