Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2004-03-04 08:34:34


Beman Dawes wrote:
>
> Even the "why not" version seems overly complex compared to a console
> iostreams "Hello, world". Why not just:
>
> winout << title("Example window") << button("Hello, world!")
> << wait_for(delete_signal);
>
> I'm not necessarily pushing that exact approach, but just pointing
> out more C++-like alternatives.

Sorry, but that's just change for change's sake. It is not more C++-like.
Even if you insist that the original decision to implement "C++-like I/O" by
overloading << and >> is still the correct one, after C++ evolved
considerably, a window is not a stream.


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