|
Boost : |
From: John Maddock (john_maddock_at_[hidden])
Date: 2002-05-23 06:53:25
> enum _Ios_Seekdir { _M_ios_seekdir_end = 1L << 16 };
>
> // 27.4.2.1.5 Type seekdir
> typedef _Ios_Seekdir seekdir;
> static const seekdir beg = seekdir(0);
> static const seekdir cur = seekdir(SEEK_CUR);
> static const seekdir end = seekdir(SEEK_END);
What? You're kidding me: surely this can't be legal code, none of
ios_base::beg, cur or end are valid values of ios_base::seekdir are they?
John Maddock
http://ourworld.compuserve.com/homepages/john_maddock/index.htm
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk