Coder Social home page Coder Social logo

Compile error in iostreams\detail\config\fpos.hpp because std::fpos<>::seekpos() is absent in VS 15.8 Preview 4 about iostreams HOT 10 CLOSED

boostorg avatar boostorg commented on June 12, 2024
Compile error in iostreams\detail\config\fpos.hpp because std::fpos<>::seekpos() is absent in VS 15.8 Preview 4

from iostreams.

Comments (10)

jeking3 avatar jeking3 commented on June 12, 2024 2

@k15tfu this library is maintained by the Community Maintenance Team and nobody merged develop into master for the release cycle. I can say there's a combination of lack of people to do the work and lack of tools to track the work that needs doing. Given we have 15+ repositories to monitor, and no tools to show when master is out of sync with respect to develop, sometimes things like this fall through the cracks. It will be in the next release as it's been merged to master.

from iostreams.

jeking3 avatar jeking3 commented on June 12, 2024

Yes, the MSVC C++ RTL is Dinkumware so that makes sense.
Perhaps seekpos was deprecated (I haven't checked) and since removed?
Or is this a defect in the RTL?

from iostreams.

Wedge009 avatar Wedge009 commented on June 12, 2024

MSVS 15.8 was released a couple of days ago. The updated MSVC tools now deprecates seekpos with the following message:

warning STL4019: The member std::fpos::seekpos() is non-Standard, and is preserved only for compatibility with workarounds for old versions of Visual C++. It will be removed in a future release, and in this release always returns 0. Please use standards-conforming mechanisms to manipulate fpos, such as conversions to and from streamoff, or an integral type, instead. If you are receiving this message while compiling Boost.IOStreams, a fix has been submitted upstream to make Boost use standards-conforming mechanisms, as it does for other compilers. You can define _SILENCE_FPOS_SEEKPOS_DEPRECATION_WARNING to acknowledge that you have received this warning, or define _REMOVE_FPOS_SEEKPOS to remove std::fpos::seekpos entirely.

I don't know where this fix submission is right now, I'd be interested to see what Microsoft's correction is.

Edit: It looks like this is resolved with #57, but it's not yet included in a boost release.

from iostreams.

jeking3 avatar jeking3 commented on June 12, 2024

It seems worse... when I examine the history I can't find the merged commit in develop.

jking@ubuntu:~/boost/libs/date_time$ git show a0c32ba
fatal: bad object a0c32ba

I will have to investigate..

from iostreams.

k15tfu avatar k15tfu commented on June 12, 2024

from iostreams.

k15tfu avatar k15tfu commented on June 12, 2024

Edit: It looks like this is resolved with #57, but it's not yet included in a boost release.

Does anybody know why the April's fix wasn't included into release in August?

from iostreams.

mwpowellhtx avatar mwpowellhtx commented on June 12, 2024

Just bumped into this nasty bug myself... Is there a workaround? I'll examine the history here... Thanks!

from iostreams.

mwpowellhtx avatar mwpowellhtx commented on June 12, 2024

Just an aside, since y'all adopted Git and did your thing to separate out the monolithic repositories, it's been one snafu after another it seems, missed updates, etc. It would seem to me that y'all should make it a top priority to make sure the repos are always in a presentable state for the build maintainers.

from iostreams.

mwpowellhtx avatar mwpowellhtx commented on June 12, 2024

See comment re: iostreams/positioning.hpp.

from iostreams.

StevePanda avatar StevePanda commented on June 12, 2024

This bug is still present when building using the Intel compilers on Windows (which use the MSVC runtimes). It looks like BOOST_MSVC gets unset when using these, so the check in #57 still goes the wrong way. Probably need to add BOOST_INTEL_WIN in the same way BOOST_CLANG was added in #77.

from iostreams.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.