Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 316
  • Last Modified:

derivating STL ostream

I'd like to derivate STO ostream class. I have problem in doing that coz there is no default ctor for this STL class. I am using VC 5.0 .
0
irsupvbo
Asked:
irsupvbo
1 Solution
 
Sigma031497Commented:
Hmmm... I dont know who wrote your iostream headers (Microsloth?) but mine (g++ under Linux) certainly have default ctors. Indeed thats the standard. Have you read your headers carefully?
0
 
LucHoltkampCommented:
What errors do you get?
0
 
md041797Commented:
You shouldn't try to derive from ostream.  The correct method is to derive from the streambuf and write new overloads for overflow, underflow, etc..
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now