Boost logo

Boost :

From: Lars Gullik Bjønnes (larsbj_at_[hidden])
Date: 2002-05-23 05:32:20

"John Maddock" <john_maddock_at_[hidden]> writes:

| Those warnings are actually pretty worrying, but they also look to be just
| plain wrong, the switch in the code is on type std::ios_base::seekdir which
| according to the standard has three members only: beg, cur, end, all of
| which are present in the switch statement. However none of them seem to be
| legal values for gcc3.1!!!
| How is std::ios_base declared in 3.1? This looks like a bug in 3.1's
| standard lib to me.

  enum _Ios_Seekdir { _M_ios_seekdir_end = 1L << 16 };

    // 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);


Boost list run by bdawes at, gregod at, cpdaniel at, john at