GithubHelp home page GithubHelp logo

Comments (4)

Orphis avatar Orphis commented on August 16, 2024

I would say to update your dependency for a modern Boost. Old versions are not very interesting for a project like this. It's over 5 years old and probably doesn't support mobile platforms well or any current compilers.

Of course, feel free to fork it and change whatever is needed of course for your usecase, but it's certainly easier to update the other library than coerce Boost to work with current compilers.

For newer versions, it's usually just drop the new archive, use it and see if the tests pass, update the build scripts as necessary for new files and new required build flags.

from boost-cmake.

helmesjo avatar helmesjo commented on August 16, 2024

Yeah, I hear you! This is however exclusively for an external dependency, and I want to modify close to nothing or in "worst case" make a pull request that gets merged (private temp-fixes is not an option). I started a discussion about supporting a newer version and it wasn't out of the question, but support for boost 1.46 (!) had to be preserved. This however presumes that there aren't a lot other things to #ifndef...
That's why I hoped to just get 1.56 building first and foremost!

As you say, that version is also terribly old but this dependency on legacy boost is only for this one framework. If I ever fall into using boost myself in any project, it will of course target a modern version.

Anyways, I'll give it a try with the help of boostdep and we'll see how it goes!

from boost-cmake.

Orphis avatar Orphis commented on August 16, 2024

In the case of that library, a simple ifdef around the Boost version should be enough to fix it for newer versions, and I would recommend that approach.

But another approach is possible, which would be to define BOOST_THREAD_USES_DATETIME, which will re-add the missing functions back. Functionality is rarely removed from Boost and usually hidden behind some flags.

from boost-cmake.

helmesjo avatar helmesjo commented on August 16, 2024

Alright thanks, I'll take a look at it.

from boost-cmake.

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.