This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Where are opfx(), osfx(), ipfx()?


Hi,

Craig Rodrigues <rodrigc@mediaone.net> writes:
> I am trying to compile some third party code which wants
> to use ostream::opfx(), ostream::osfx(), istream::ipfx() functions.
> These functions appear to be in libstdc++-v2, but not in libstdc++-v3
> (at least not in: gcc version 3.0 20010223)
> 
> Where are they?
> If they are deprecated functions, how can I port this old code
> to use the libstdc++-v3 equivalents?

I think you should use the 'sentry' class instead.  It's constructor
is somewhat equivalent to sfx(), and it's destructor like pfx().

- Hari
-- 
Raja R Harinath ------------------------------ harinath@cs.umn.edu
"When all else fails, read the instructions."      -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing."   -- Roy L Ash


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]