@@ -451,7 +451,7 @@ struct XYval {
451
451
// Length reduced to one dimension
452
452
FI constexpr T magnitude () const { return (T)sqrtf (x*x + y*y); }
453
453
// Pointer to the data as a simple array
454
- FI operator T* () { return pos; }
454
+ explicit FI operator T* () { return pos; }
455
455
// If any element is true then it's true
456
456
FI constexpr operator bool () const { return x || y; }
457
457
// Smallest element
@@ -601,7 +601,7 @@ struct XYZval {
601
601
// Length reduced to one dimension
602
602
FI constexpr T magnitude () const { return (T)TERN (HAS_X_AXIS, sqrtf (NUM_AXIS_GANG (x*x, + y*y, + z*z, + i*i, + j*j, + k*k, + u*u, + v*v, + w*w)), 0 ); }
603
603
// Pointer to the data as a simple array
604
- FI operator T* () { return pos; }
604
+ explicit FI operator T* () { return pos; }
605
605
// If any element is true then it's true
606
606
FI constexpr operator bool () const { return 0 NUM_AXIS_GANG (|| x, || y, || z, || i, || j, || k, || u, || v, || w); }
607
607
// Smallest element
@@ -749,7 +749,7 @@ struct XYZEval {
749
749
// Length reduced to one dimension
750
750
FI constexpr T magnitude () const { return (T)sqrtf (LOGICAL_AXIS_GANG (+ e*e, + x*x, + y*y, + z*z, + i*i, + j*j, + k*k, + u*u, + v*v, + w*w)); }
751
751
// Pointer to the data as a simple array
752
- FI operator T* () { return pos; }
752
+ explicit FI operator T* () { return pos; }
753
753
// If any element is true then it's true
754
754
FI constexpr operator bool () const { return 0 LOGICAL_AXIS_GANG (|| e, || x, || y, || z, || i, || j, || k, || u, || v, || w); }
755
755
// Smallest element
0 commit comments