From 709526bc3a42d0843b2cdd53782407a9f5c12bee Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Thu, 24 Mar 2016 23:04:53 +0000 Subject: [PATCH] Identity: Make cast-to-primitive operators explicit to avoid operator resolution ambiguities when compiling single-precision --- src/OpenFOAM/primitives/SphericalTensor/Identity.H | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OpenFOAM/primitives/SphericalTensor/Identity.H b/src/OpenFOAM/primitives/SphericalTensor/Identity.H index 0d645d8b91..aac5313532 100644 --- a/src/OpenFOAM/primitives/SphericalTensor/Identity.H +++ b/src/OpenFOAM/primitives/SphericalTensor/Identity.H @@ -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; }