• Advertisement
Sign in to follow this  

Creating an iostream

This topic is 4918 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How do I declare an iostream? All I get is a C2512 saying there's no appropriate constructor for the class. Only the fstreams work.

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by Kekko
How do I declare an iostream? All I get is a C2512 saying there's no appropriate constructor for the class. Only the fstreams work.

You're trying to inherit from iostream aren't you, well you need to pass it a std::streambuf* using a constructor specifier.

Share this post


Link to post
Share on other sites
Aha! Found out about stringstreams. That was exactly what I wanted to use...

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement