|
Boost : |
From: Rozental, Gennadiy (gennadiy.rozental_at_[hidden])
Date: 2003-09-10 13:15:24
> > 2. or by overloading it for the 3 following types to catch
> all 3 kinds
> > of manipulators :
> >
> > ios_base& (*pfn)(ios_base&)
> > basic_ostream<Elem,Tr> & (*pfn)(basic_ostream<Elem, Tr>&)
> > basic_ios<Elem, Tr>& (*pfn)(basic_ios<Elem, Tr>&)
> >
> > (just like std::basic_ostream :: operator<< 's overloads)
>
> I think this is the only way that truly works.
>
> --
> -Brian McNamara (lorgon_at_[hidden])
I will consider adding this to wrapstream.hpp
Gennadiy.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk