From a562cdee56c48ee1395f5a169eba8dcbe5d29088 Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 10 Nov 2015 18:58:30 +0300 Subject: [PATCH] gcc 4.9 compatibility --- src/GeomAPI/GeomAPI_Interface.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/GeomAPI/GeomAPI_Interface.h b/src/GeomAPI/GeomAPI_Interface.h index fd5c83fce..de51617ae 100644 --- a/src/GeomAPI/GeomAPI_Interface.h +++ b/src/GeomAPI/GeomAPI_Interface.h @@ -19,7 +19,7 @@ class GeomAPI_Interface { private: - std::shared_ptr myImpl; ///< pointer to the internal impl object + std::shared_ptr myImpl; ///< pointer to the internal impl object public: /// None - constructor @@ -28,7 +28,7 @@ class GeomAPI_Interface /// Constructor by the impl pointer (used for internal needs) template explicit GeomAPI_Interface(T* theImpl) { - myImpl.reset(theImpl); + myImpl.reset(reinterpret_cast(theImpl)); } /// Destructor @@ -37,22 +37,22 @@ class GeomAPI_Interface /// Returns the pointer to the impl template inline T* implPtr() { - return static_cast(myImpl.get()); + return reinterpret_cast(myImpl.get()); } /// Returns the pointer to the impl template inline const T* implPtr() const { - return static_cast(myImpl.get()); + return reinterpret_cast(myImpl.get()); } /// Returns the reference object of the impl template inline const T& impl() const { - return *(static_cast(myImpl.get())); + return *(reinterpret_cast(myImpl.get())); } /// Updates the impl (deletes the old one) template inline void setImpl(T* theImpl) { - myImpl.reset(theImpl); + myImpl.reset(reinterpret_cast(theImpl)); } /// Returns true if the impl is empty -- 2.39.2