From 2764028c43eb43f9e5ad6dcc0aa5e5efc2e99df9 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Wed, 18 Jul 2018 23:35:47 +0300 Subject: [PATCH] Remove some leftover implicit cast operators. --- source/Base/Algo.hpp | 96 -------------------------------------------- 1 file changed, 96 deletions(-) diff --git a/source/Base/Algo.hpp b/source/Base/Algo.hpp index 511d98a0..ce0c10da 100644 --- a/source/Base/Algo.hpp +++ b/source/Base/Algo.hpp @@ -950,30 +950,6 @@ template < typename T > struct RecvElemFunc { mObj = inst.mObj; } - - /* -------------------------------------------------------------------------------------------- - * Implicit cast to the managed object. - */ - operator LightObj () - { - return mObj; - } - - /* -------------------------------------------------------------------------------------------- - * Implicit cast to the managed object. - */ - operator LightObj & () - { - return mObj; - } - - /* -------------------------------------------------------------------------------------------- - * Implicit cast to the managed object. - */ - operator const LightObj & () const - { - return mObj; - } }; /* ------------------------------------------------------------------------------------------------ @@ -1040,30 +1016,6 @@ public: return true; } - /* -------------------------------------------------------------------------------------------- - * Implicit cast to the managed function. - */ - operator Function () - { - return mFunc; - } - - /* -------------------------------------------------------------------------------------------- - * Implicit cast to the managed function. - */ - operator Function & () - { - return mFunc; - } - - /* -------------------------------------------------------------------------------------------- - * Implicit cast to the managed function. - */ - operator const Function & () const - { - return mFunc; - } - /* -------------------------------------------------------------------------------------------- * Implicit cast to the count value. */ @@ -1140,54 +1092,6 @@ public: return true; } - /* -------------------------------------------------------------------------------------------- - * Implicit cast to the managed function. - */ - operator Function () - { - return mFunc; - } - - /* -------------------------------------------------------------------------------------------- - * Implicit cast to the managed function. - */ - operator Function & () - { - return mFunc; - } - - /* -------------------------------------------------------------------------------------------- - * Implicit cast to the managed function. - */ - operator const Function & () const - { - return mFunc; - } - - /* -------------------------------------------------------------------------------------------- - * Implicit cast to the managed payload. - */ - operator LightObj () - { - return mData; - } - - /* -------------------------------------------------------------------------------------------- - * Implicit cast to the managed payload. - */ - operator LightObj & () - { - return mData; - } - - /* -------------------------------------------------------------------------------------------- - * Implicit cast to the managed payload. - */ - operator const LightObj & () const - { - return mData; - } - /* -------------------------------------------------------------------------------------------- * Implicit cast to the count value. */