Boost logo

Boost :

From: pedro.lamarao_at_[hidden]
Date: 2005-06-09 22:56:36


Stefan Seefeld wrote:

> Why use iostream's read if you can do that on the streambuf object
> directly.
> And, why use the concept of a 'stream' at all when dealing with datagrams ?
> That doesn't sound like a good fit to me.

class datagram;

datagram d;
iostream ios;
// Fill in the datagram;

ios << d;

--
 Pedro Lamarão

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk