Boost logo

Boost Users :

Subject: Re: [Boost-users] Error building Spirit parser in VS2017
From: Michael Powell (mwpowellhtx_at_[hidden])
Date: 2018-10-31 03:28:59


On Tue, Oct 30, 2018 at 11:22 PM Gavin Lambert via Boost-users
<boost-users_at_[hidden]> wrote:
>
> On 31/10/2018 12:20, Michael Powell wrote:
> > I am receiving the following error building against the latest VS2017 ...
>
> Did you read the error? It's pretty explicit what the problem is and
> what you need to do to work around it until a newer version of Boost is
> released.

Well, I added _REMOVE_FPOS_SEEKPOS to my preprocessor defs, and now I
am receiving this, I suppose, predictably:

Severity Code Description Project File Line Suppression State
Error C2039 'seekpos': is not a member of 'std::fpos<_Mbstatet>'
Kingdom.OrTools.Sat.Params.Generator
d:\dev\boost.org\boost_1_68_0\boost\iostreams\positioning.hpp 96

I can defined _SILENCE_FPOS_SEEKPOS_DEPRECATION_WARNING instead, but
clearly if seekpos() is always returning 0, there's going to be some
regressions.

So... What's the recourse beyond that? Depending on the deprecated
(always returning zero) seekpos() is the wrong thing to do.

> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> https://lists.boost.org/mailman/listinfo.cgi/boost-users


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net