diff --git a/src/Standard/Standard_Time.hxx b/src/Standard/Standard_Time.hxx index 3a44119790..9b95212632 100755 --- a/src/Standard/Standard_Time.hxx +++ b/src/Standard/Standard_Time.hxx @@ -16,22 +16,17 @@ #include -// =============================================== -// Methods from Standard_Entity class which are redefined: -// - IsEqual -// =============================================== - -#ifndef __QNX__ // same as Standard_Size - // ------------------------------------------------------------------ // IsEqual : Returns Standard_True if two time values are equal // ------------------------------------------------------------------ -inline Standard_Boolean IsEqual (const Standard_Time theOne, - const Standard_Time theTwo) +template +typename opencascade::std::enable_if::value + && !opencascade::std::is_same::value + && !opencascade::std::is_same::value, + Standard_Boolean>::type +IsEqual (const TheTimeType theOne, const TheTimeType theTwo) { return theOne == theTwo; } #endif - -#endif