diff --git a/mlx/array.h b/mlx/array.h index 8c1f7e933..cc526cd9f 100644 --- a/mlx/array.h +++ b/mlx/array.h @@ -67,7 +67,9 @@ class array { array& operator=(array&& other) && = delete; /** Default copy and move constructors otherwise. */ +#if !defined(_MSC_VER) array& operator=(array&& other) & = default; +#endif array(const array& other) = default; array(array&& other) = default;