Boost logo

Boost :

From: Roland Schwarz (roland.schwarz_at_[hidden])
Date: 2008-03-01 10:40:08


Larry Evans wrote:
> I couldn't resist trying it now;
;-)

> however, I'm getting wrong output :(

Hmm, I did not test it, but from looking at your source:

marg_ostream& mout(void)
{
    return std::cout;
}

gives you back std::cout, while it should hand back
  ; boost::iostreams::filtering_ostream out

The state is stored in out instance of course,
not cout.

-- 
_________________________________________
  _  _  | Roland Schwarz
 |_)(_  | aka. speedsnail
 | \__) | mailto:roland.schwarz_at_[hidden]
________| http://www.blackspace.at

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