Identity: Make cast-to-primitive operators explicit

to avoid operator resolution ambiguities when compiling single-precision
This commit is contained in:
Henry Weller 2016-03-24 23:04:53 +00:00
parent b9522c8032
commit 709526bc3a

View file

@ -77,13 +77,13 @@ public:
}
//- Return 1 for label
inline operator label() const
inline explicit operator label() const
{
return 1;
}
//- Return 1 for scalar
inline operator scalar() const
inline explicit operator scalar() const
{
return 1;
}