home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!news.mentorg.com!sdl!adk
- From: adk@Warren.MENTORG.COM (Ajay Kamdar)
- Subject: istrstream
- Message-ID: <1992Sep1.225259.1533@Warren.MENTORG.COM>
- Organization: Mentor Graphics, Silicon Design Division
- Date: Tue, 1 Sep 1992 22:52:59 GMT
- Lines: 16
-
- Why do istrstream constructors take a char* instead of a const char* ?
- This either stops me from reading a formatted input string (which I get
- as a const char*) as an istrstream, or compels me to cast away the const
- on the string when constructing the istrstream.
-
- Any one knows why? Does the istrstream actually modify the input buffer?
-
- Thanks.
-
- - Ajay
-
- --
- I speak for none but myself.
-
- Ajay Kamdar Email : ajay_kamdar@mentorg.com
- Mentor Graphics, IC Group (Warren, NJ) Phone : (908) 580-0102
-