Boost logo

Boost :

Subject: Re: [boost] [iostream] Boost should not be saying "_FPOSOFF"
From: Sylvester-Bradley, Gareth (Gareth.Sylvester-Bradley_at_[hidden])
Date: 2016-09-06 14:37:35


On 06 September 2016 19:24, Stephan T. Lavavej wrote:
> [Rob Stewart]
>> Can you tell us what change can be made to the code to effect what had been gained by using that macro?
>
> It's unconditionally:
>
> #define _FPOSOFF(fp) ((long long)(fp))
>
> So you should be able to replace it with a static_cast, or eliminate it entirely.
>
> STL

These days I'm sure that's true, but formerly don't I remember on 32-bit platforms it could be something like this?

typedef struct fpos_t
{
    unsigned int lopart;
    int hipart;
} fpos_t;
#define _FPOSOFF(fp) ((long)(fp).lopart)

How long in the tooth am I?

Gareth

************************************************************************ The information contained in this message or any of its attachments may be confidential and is intended for the exclusive use of the addressee(s). Any disclosure, reproduction, distribution or other dissemination or use of this communication is strictly prohibited without the express permission of the sender. The views expressed in this email are those of the individual and not necessarily those of Sony or Sony affiliated companies. Sony email is for business use only. This email and any response may be monitored by Sony to be in compliance with Sony's global policies and standards


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk