From 6795a28c99cce9e7fe78102b6e8db10117065581 Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 21 Aug 2019 00:12:50 +0200 Subject: [PATCH] add missing std:: namespace to build on Debian 10 --- src/3rdParty/salomesmesh/inc/Rn.h | 4 ++-- src/Mod/Part/App/PropertyTopoShape.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/3rdParty/salomesmesh/inc/Rn.h b/src/3rdParty/salomesmesh/inc/Rn.h index 6ec871d932..e92d2275a9 100644 --- a/src/3rdParty/salomesmesh/inc/Rn.h +++ b/src/3rdParty/salomesmesh/inc/Rn.h @@ -180,12 +180,12 @@ class R4: public R3 { friend std::ostream& operator <<(std::ostream& f, const R4 & P ) { f << P.x << ' ' << P.y << ' ' << P.z << ' ' << P.omega; return f; } - friend istream& operator >>(istream& f, R4 & P) + friend std::istream& operator >>(std::istream& f, R4 & P) { f >> P.x >> P.y >> P.z >> P.omega ; return f; } friend std::ostream& operator <<(std::ostream& f, const R4 * P ) { f << P->x << ' ' << P->y << ' ' << P->z << ' ' << P->omega; return f; } - friend istream& operator >>(istream& f, R4 * P) + friend std::istream& operator >>(std::istream& f, R4 * P) { f >> P->x >> P->y >> P->z >> P->omega ; return f; } public: diff --git a/src/Mod/Part/App/PropertyTopoShape.cpp b/src/Mod/Part/App/PropertyTopoShape.cpp index b986d82feb..a6ecad1e25 100644 --- a/src/Mod/Part/App/PropertyTopoShape.cpp +++ b/src/Mod/Part/App/PropertyTopoShape.cpp @@ -279,10 +279,10 @@ static void BRepTools_Write(const TopoDS_Shape& Sh, Standard_OStream& S) { SS.Write(S); SS.Write(Sh,S); } -static Standard_Boolean BRepTools_Write(const TopoDS_Shape& Sh, - const Standard_CString File) + +static Standard_Boolean BRepTools_Write(const TopoDS_Shape& Sh, const Standard_CString File) { - ofstream os; + std::ofstream os; #if OCC_VERSION_HEX >= 0x060800 OSD_OpenStream(os, File, ios::out); #else