Skip to content
Snippets Groups Projects
Commit c05686d9 authored by Henry Weller's avatar Henry Weller
Browse files

Identity: Make cast-to-primitive operators explicit

to avoid operator resolution ambiguities when compiling single-precision
parent 9f7ecd54
Branches
Tags
No related merge requests found
......@@ -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;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment