There was an error while loading. Please reload this page.
1 parent 19d82da commit 9d442b0Copy full SHA for 9d442b0
include/generic.h
@@ -31,7 +31,7 @@ namespace alg
31
template<typename T>
32
static inline void swap(T &x, T &y)
33
{
34
-T _t = x;
+T _t(x);
35
x = y;
36
y = _t;
37
}
0 commit comments