Boost logo

Boost :

Subject: Re: [boost] [iostream] Boost should not be saying "_FPOSOFF"
From: Stephan T. Lavavej (stl_at_[hidden])
Date: 2016-09-06 14:48:48

> It's unconditionally:
> #define _FPOSOFF(fp) ((long long)(fp))

[Gareth Sylvester-Bradley]
> 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?

I've never seen that. VS 2012+ have the long long cast. In VS 2010 (and going back to 2005, IIRC), it was:

#define _FPOSOFF(fp) ((long)(fp))

which was hostile to large files, which was why we changed it.


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