Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
KWSys
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sylvain Joubert
KWSys
Commits
c12d406c
Commit
c12d406c
authored
21 years ago
by
Brad King
Browse files
Options
Downloads
Patches
Plain Diff
ERR: Fixed istringstream to work with MSVC 6 old streams.
parent
cc3228f6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kwsys_ios_sstream.h.in
+3
-4
3 additions, 4 deletions
kwsys_ios_sstream.h.in
with
3 additions
and
4 deletions
kwsys_ios_sstream.h.in
+
3
−
4
View file @
c12d406c
...
...
@@ -95,14 +95,13 @@ class istringstream: private kwsys_stl::string, public istrstream
public:
typedef kwsys_stl::string StdString;
typedef istrstream IStrStream;
istringstream(): StdString(), IStrStream(StdString::c_str()) {}
istringstream(): StdString(),
IStrStream(const_cast<char*>(StdString::c_str())) {}
istringstream(const kwsys_stl::string& s):
StdString(s), IStrStream(StdString::c_str()) {}
StdString(s), IStrStream(
const_cast<char*>(
StdString::c_str())
)
{}
kwsys_stl::string str() const { return *this; }
void str(const kwsys_stl::string& s)
{
// Very dangerous. If this throws, the object is hosed. When the
// destructor is later called, the program is hosed too.
this->~istringstream();
new (this) istringstream(s);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment