Skip to content

Commit 3b35704

Browse files
committed
Add missing deleted operators and remove unnecessary addition of operators
1 parent 300a22e commit 3b35704

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

sycl/doc/extensions/experimental/sycl_ext_oneapi_complex.asciidoc

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,34 +324,39 @@ public:
324324

325325
friend marray &operator %=(marray &lhs, const marray &rhs) = delete;
326326
friend marray &operator %=(marray &lhs, const value_type &rhs) = delete;
327-
friend marray &operator %=(value_type &lhs, const marray &rhs) = delete;
328327

329328
friend marray operator ++(marray &lhs, int) = delete;
330329
friend marray &operator ++(marray &lhs) = delete;
331330

332331
friend marray operator --(marray &lhs, int) = delete;
333332
friend marray &operator --(marray &lhs) = delete;
334333

334+
friend marray &operator +=(marray &lhs) = delete;
335+
friend marray operator +=(marray &lhs, int) = delete;
336+
337+
friend marray &operator -=(marray &lhs) = delete;
338+
friend marray operator -=(marray &lhs, int) = delete;
339+
335340
friend marray operator &(const marray &lhs, const marray &rhs) = delete;
336341
friend marray operator &(const marray &lhs, const value_type &rhs) = delete;
342+
friend marray operator &(const value_type &lhs, const marray &rhs) = delete;
337343

338344
friend marray operator |(const marray &lhs, const marray &rhs) = delete;
339345
friend marray operator |(const marray &lhs, const value_type &rhs) = delete;
346+
friend marray operator |(const value_type &lhs, const marray &rhs) = delete;
340347

341348
friend marray operator ^(const marray &lhs, const marray &rhs) = delete;
342349
friend marray operator ^(const marray &lhs, const value_type &rhs) = delete;
350+
friend marray operator ^(const value_type &lhs, const marray &rhs) = delete;
343351

344352
friend marray &operator &=(marray &lhs, const marray &rhs) = delete;
345353
friend marray &operator &=(marray &lhs, const value_type &rhs) = delete;
346-
friend marray &operator &=(value_type &lhs, const marray &rhs) = delete;
347354

348355
friend marray &operator |=(marray &lhs, const marray &rhs) = delete;
349356
friend marray &operator |=(marray &lhs, const value_type &rhs) = delete;
350-
friend marray &operator |=(value_type &lhs, const marray &rhs) = delete;
351357

352358
friend marray &operator ^=(marray &lhs, const marray &rhs) = delete;
353359
friend marray &operator ^=(marray &lhs, const value_type &rhs) = delete;
354-
friend marray &operator ^=(value_type &lhs, const marray &rhs) = delete;
355360

356361
friend marray<bool, NumElements> operator <<(const marray &lhs, const marray &rhs) = delete;
357362
friend marray<bool, NumElements> operator <<(const marray &lhs, const value_type &rhs) = delete;
@@ -383,6 +388,14 @@ public:
383388
friend marray<bool, NumElements> operator >=(const marray &lhs, const value_type &rhs) = delete;
384389
friend marray<bool, NumElements> operator >=(const value_type &lhs, const marray &rhs) = delete;
385390

391+
friend marray<bool, NumElements> operator &&(const marray &lhs, const marray &hhs) = delete;
392+
friend marray<bool, NumElements> operator &&(const marray &lhs, const value_type &rhs) = delete;
393+
friend marray<bool, NumElements> operator &&(const value_type &lhs, const marray &rhs) = delete;
394+
395+
friend marray<bool, NumElements> operator ||(const marray &lhs, const marray &rhs) = delete;
396+
friend marray<bool, NumElements> operator ||(const marray &lhs, const value_type &rhs) = delete;
397+
friend marray<bool, NumElements> operator ||(const value_type &lhs, const marray &rhs) = delete;
398+
386399
friend marray operator ~(const marray &lhs) = delete;
387400

388401
friend marray<bool, NumElements> operator !(const marray &lhs) = delete;

0 commit comments

Comments
 (0)