Salome HOME
Migration to OCCT 7.0
[modules/geom.git] / src / GEOM / GEOM_PythonDump.hxx
index a92b988e3127b5c6fb57224378f11f64bb952f1c..7736c343dd21c7f78536eaa99a2a302da6b0b415 100644 (file)
@@ -48,6 +48,10 @@ namespace GEOM
 
     //operator TCollection_AsciiString () const;
 
+#if OCC_VERSION_MAJOR >= 7
+    template <class T>
+    Standard_EXPORT TPythonDump& operator<< (const Handle(T)& theObject) { return *this << theObject.get(); }
+#endif
     Standard_EXPORT TPythonDump& operator<< (bool theArg);
     Standard_EXPORT TPythonDump& operator<< (long int theArg);
     Standard_EXPORT TPythonDump& operator<< (int theArg);