Sign in to follow this  

Creating an iostream

Recommended Posts

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this