Archived issue #0005421
Support of STL streams should not be mandatory on WNT
Description
Today the STL support is in general switched on by macro HAVE_IOSTREAM on all
platform except WNT. Strangely, on WNT these streams are used unconditionally,
see Standard_Stream.hxx and Standard_SStream.hxx.
This practice conflicts with the need of specific development:
1. If SD target is library, not executable, then it is completely wrong because
your approach creates incompatibility with the customer's main application.
2. STL streams are issue of source code incompatibility up to blocking any
upgrade and maintenance of OCC platform. In particular, STL does not implement
class "ostream_withassign" used in SD projects.
I attach the proposed correction, though please do not charge me of any further
activity, this is the problem of Open Cascade as platform and should not
correlate with any SD projects.
platform except WNT. Strangely, on WNT these streams are used unconditionally,
see Standard_Stream.hxx and Standard_SStream.hxx.
This practice conflicts with the need of specific development:
1. If SD target is library, not executable, then it is completely wrong because
your approach creates incompatibility with the customer's main application.
2. STL streams are issue of source code incompatibility up to blocking any
upgrade and maintenance of OCC platform. In particular, STL does not implement
class "ostream_withassign" used in SD projects.
I attach the proposed correction, though please do not charge me of any further
activity, this is the problem of Open Cascade as platform and should not
correlate with any SD projects.
Additional information
Documentation remark, added by ABV 2005-09-13 10:50:14:
Improvements:
When building Open CASCADE Technology libraries from sources on Windows NT
platform, macro USE_OLD_STREAMS can be defined to enforce it using old-style
streams library rather than new (STL) streams (default)
NOTE FOR DOCUMENTATION TEAM:
This information should be also reflected in OCC documentation, section
'Building Modules', along with description of other options of this kind
(currently missing -- please contact IMV or ABV for information)
Modified entities:
Standard_SStream.hxx
Standard_Stream.hxx
Improvements:
When building Open CASCADE Technology libraries from sources on Windows NT
platform, macro USE_OLD_STREAMS can be defined to enforce it using old-style
streams library rather than new (STL) streams (default)
NOTE FOR DOCUMENTATION TEAM:
This information should be also reflected in OCC documentation, section
'Building Modules', along with description of other options of this kind
(currently missing -- please contact IMV or ABV for information)
Modified entities:
Standard_SStream.hxx
Standard_Stream.hxx
Public activity
No public notes
Participants are labeled by their role within this record.