home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / cplus / 13165 < prev    next >
Encoding:
Text File  |  1992-09-01  |  817 b   |  26 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!news.mentorg.com!sdl!adk
  3. From: adk@Warren.MENTORG.COM (Ajay Kamdar)
  4. Subject: istrstream
  5. Message-ID: <1992Sep1.225259.1533@Warren.MENTORG.COM>
  6. Organization: Mentor Graphics, Silicon Design Division
  7. Date: Tue, 1 Sep 1992 22:52:59 GMT
  8. Lines: 16
  9.  
  10. Why do istrstream constructors take a char* instead of a const char* ?
  11. This either stops me from reading a formatted input string (which I get
  12. as a const char*) as an istrstream, or compels me to cast away the const
  13. on the string when constructing the istrstream.
  14.  
  15. Any one knows why? Does the istrstream actually modify the input buffer?
  16.  
  17. Thanks.
  18.  
  19. - Ajay
  20.  
  21. -- 
  22. I speak for none but myself.
  23.  
  24. Ajay Kamdar                               Email : ajay_kamdar@mentorg.com
  25. Mentor Graphics, IC Group (Warren, NJ)    Phone : (908) 580-0102
  26.