Identity: Make cast-to-primitive operators explicit
to avoid operator resolution ambiguities when compiling single-precision
This commit is contained in:
parent
b9522c8032
commit
709526bc3a
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue