Find the answer to your Linux question:
Results 1 to 3 of 3
I've been reading numerous forums regarding strstream and I understand that it has been deprecated. But I found another forum where someone mentioned that sstream, which replaced strstream was also ...
  1. #1
    Just Joined!
    Join Date
    Jun 2007
    Posts
    2

    strstream and sstream questions.

    I've been reading numerous forums regarding strstream and I understand that it has been deprecated. But I found another forum where someone mentioned that sstream, which replaced strstream was also deprecated. Can anyone confirm if this is true? If sstream was deprecated what was it replaced with?

    Regardless, I have sstream in my include directory so I'm going to try using it. (I'm using gcc version 3.2.3, Linux Redhat)
    But now that I've #include <sstream> I get all kinds of the following erors:

    /usr/include/g++-3/sstream:49: syntax error before `&' token
    /usr/include/g++-3/sstream:62: syntax error before `}' token
    /usr/include/g++-3/sstream:64: syntax error before `(' token

    Can anyone lend any insight as to what these errors mean?

    TIA,
    Jennifer

  2. #2
    Linux User
    Join Date
    Oct 2004
    Location
    /dev/random
    Posts
    404
    Probably, what you need is stringstream.
    Here is the reference of stringstream:
    stringstream - C++ Reference

    Check out the ios class hierarchy at:
    IOstream Library - C++ Reference

    HTH
    The Unforgiven
    Registered Linux User #358564

  3. #3
    Just Joined!
    Join Date
    Jun 2007
    Posts
    2
    Yes, I'm actually trying to use stringstream but I get all these compile errors just by including sstream in my program. I actually haven't declared any stringstream variables in my code and I'm already getting these errors!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...