Boost logo

Boost Testing :

From: Catherine Morton (catherin_at_[hidden])
Date: 2008-01-07 16:02:20


I'll just leave the copyright header here just in case

/**********************************************************************/
/* <ios> header file */
/* */
/**********************************************************************/
/* */
/* Licensed Materials - Property of IBM. */
/* IBM XL C/C++ Enterprise Edition for AIX, V9.0 */
/* 5724-S71 */
/* Copyright IBM Corp. 1991, 2006. */
/* All Rights Reserved. */
/* US Government Users Restricted Rights - */
/* Use, duplication or disclosure restricted by */
/* GSA ADP Schedule Contract with IBM Corp. */
/* */
/**********************************************************************/
/* */
/* Dinkum C++ Library */
/* Copyright (c) 1998. Licensed to IBM Corp. and its suppliers. */
/* */
/**********************************************************************/

....

template<class _St>
        class fpos {
        typedef fpos<_St> _Myt;
public:
        fpos(streamoff _O = 0)
                : _Off(_O), _Fpos(_Fpz), _State(_Stz) {}
        fpos(_St _S, fpos_t _F)
                : _Off(0), _Fpos(_F), _State(_S) {}
        _St state() const
                {return (_State); }
        void state(_St _S)
                {_State = _S; }
        fpos_t seekpos() const
                {return (_Fpos); }
        operator streamoff() const
                {return (_Off + ((long)(_Fpos))); }
        streamoff operator-(const _Myt& _R) const
                {return ((streamoff)*this - (streamoff)_R); }
        _Myt& operator+=(streamoff _O)
                {_Off += _O;
                return (*this); }
        _Myt& operator-=(streamoff _O)
                {_Off -= _O;
                return (*this); }
        _Myt operator+(streamoff _O) const
                {_Myt _Tmp = *this;
                return (_Tmp += _O); }
        _Myt operator-(streamoff _O) const
                {_Myt _Tmp = *this;
                return (_Tmp -= _O); }
        bool operator==(const _Myt& _R) const
                {return ((streamoff)*this == (streamoff)_R); }
        bool operator!=(const _Myt& _R) const
                {return (!(*this == _R)); }
private:
        static _St _Stz;
        streamoff _Off;
        fpos_t _Fpos;
        _St _State;
        };

Let me know if I can help

-----
Catherine Morton
VAC++ Kernel Development
catherin_at_[hidden]
(905) 413-4328

Jonathan Turkanis <turkanis_at_[hidden]>
Sent by: boost-testing-bounces_at_[hidden]
01/06/2008 07:45 PM
Please respond to
Running Boost regression tests <boost-testing_at_[hidden]>

To
boost-testing_at_[hidden]
cc

Subject
[Boost-testing] [vacpp][iostreams] Help fixing stream_offset_64bit_test

Hi,

The iostreams test stream_offset_64bit_test.cpp is failing on your
platform. In order to try to fix this problem, I'd like to see the
definition of the class template fpos from the standard header <ios>
(often defined elsewhere). If you could provide me with this info
(without violating any license agreements), I would greatly appreciate it.

Thanks,

-- 
Jonathan Turkanis
CodeRage
http://www.coderage.com
_______________________________________________
Boost-Testing mailing list
Boost-Testing_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-testing


Boost-testing list run by mbergal at meta-comm.com