mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-06 18:26:22 +03:00
0008239: Foundation Classes - directive "using namespace std" doesn't allow to build application with OCC and other 3rd party libraries
Standard_Stream.hxx no more adds "using std::" entities.
This commit is contained in:
parent
0423218095
commit
7fab82af5f
@ -1761,3 +1761,6 @@ The following API changes have been made:
|
|||||||
* Methods BOPTools_BoxSelector::Reject and BOPTools_BoxSelector::Accept have been removed as unused.
|
* Methods BOPTools_BoxSelector::Reject and BOPTools_BoxSelector::Accept have been removed as unused.
|
||||||
* The RunParallel flag has been removed from the list of parameters of BOPAlgo_Tools::IntersectVertices method. Earlier, it performed selection from the UB tree in parallel mode. Now all interfering pairs are found in one pass, using pair traverse of the same BVH tree.
|
* The RunParallel flag has been removed from the list of parameters of BOPAlgo_Tools::IntersectVertices method. Earlier, it performed selection from the UB tree in parallel mode. Now all interfering pairs are found in one pass, using pair traverse of the same BVH tree.
|
||||||
|
|
||||||
|
@subsection upgrade_740_stdnamespace Standard_Stream.hxx no more has "using std::" statements
|
||||||
|
*Standard_Stream.hxx* header, commonly included by other OCCT header files, does no more add entities from *std namespace* related to streams (like *std::cout*, *std::istream* and others) into global namespace.
|
||||||
|
The application code relying on this matter should be updated to either specify std namespace explicitly (like std::cout) or add "using std::" statements locally.
|
||||||
|
@ -185,11 +185,4 @@ inline const Handle(Message_Messenger)& Message_EndLine (const Handle(Message_Me
|
|||||||
return theMessenger;
|
return theMessenger;
|
||||||
}
|
}
|
||||||
|
|
||||||
// endl
|
|
||||||
inline const Handle(Message_Messenger)& endl (const Handle(Message_Messenger)& theMessenger)
|
|
||||||
{
|
|
||||||
theMessenger->Send ("", Message_Info, Standard_True);
|
|
||||||
return theMessenger;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif // _Message_Messenger_HeaderFile
|
#endif // _Message_Messenger_HeaderFile
|
||||||
|
@ -21,26 +21,4 @@
|
|||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
|
||||||
// "using" declaration for STL types is still necessary
|
|
||||||
// as OCCT code contains too much of this staff without std:: prefix
|
|
||||||
using std::istream;
|
|
||||||
using std::ostream;
|
|
||||||
using std::ofstream;
|
|
||||||
using std::ifstream;
|
|
||||||
using std::fstream;
|
|
||||||
using std::filebuf;
|
|
||||||
using std::streambuf;
|
|
||||||
using std::streampos;
|
|
||||||
using std::ios;
|
|
||||||
using std::cout;
|
|
||||||
using std::cerr;
|
|
||||||
using std::cin;
|
|
||||||
using std::endl;
|
|
||||||
using std::ends;
|
|
||||||
using std::flush;
|
|
||||||
using std::setw;
|
|
||||||
using std::setprecision;
|
|
||||||
using std::hex;
|
|
||||||
using std::dec;
|
|
||||||
|
|
||||||
#endif // _Standard_Stream_HeaderFile
|
#endif // _Standard_Stream_HeaderFile
|
||||||
|
Loading…
x
Reference in New Issue
Block a user