[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: position.hh compile error C4146 (VisualStudio 2017)

From: Hans Åberg
Subject: Re: position.hh compile error C4146 (VisualStudio 2017)
Date: Sun, 19 Aug 2018 14:40:05 +0200

> On 18 Aug 2018, at 17:03, Akim Demaille <address@hidden> wrote:
> I don’t remember why I wrote it this way, but today I don’t care much about 
> INT_MIN here.  I think the code has become too complex for what it meant to 
> do.  Also, maybe I should have sticked to int instead of trying to unsigned, 
> but it’s too late to change that :)

Maybe std::fpos and std::streamoff could be used, which are guaranteed to be 
able to represent the maximum file size.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]