Re: ios::seek_dir
It turns out ios::seek_dir has now become ios::seekdir
On Fri, 22 Feb 2008, Irina Voiculescu wrote:
> I'm trying to compile some ten-year-old code. It used to work fine on my
> Solaris machine, but I've recently switched to Fedora 7 and am having to
> re-install the lot.
>
> This line doesn't pass compilation:
>
> logfile->seekp(-4,(ios::seek_dir)1);
>
> on the grounds that `seek_dir' is not a member of `std::ios'. If it's
> relevant, I'm trying to compile it with
>
> g++34 -Wno-deprecated
>
> I tried various things, like not qualifying seek_dir at all, or qualifying
> with std::ios, both combined with putting (exactly) one of these lines at the
> top:
>
> using ios::seek_dir;
> using std::ios::seek_dir;
> using std::ios;
> #include <ios>
>
> but to no avail.
>
> The advice I can get from random places on the web says that seek_dir should
> be qualified with ios:: but the question is, then, how to I tell the compiler
> to bring ios into scope?
>
>
> Any greatly appreciated...
|