Coder Social home page Coder Social logo

Comments (4)

olk avatar olk commented on June 3, 2024

Can the latest stable boost.context work with C++0x?

yes

What's the ec_v1 and ec_v2 relations with C++11? I can some CXX11 macro protect them.

I suggest to use class boost::context::fiber instead of execution_context<>.
fiber, continuation and execution_context<> are abstractions of the context switch facility, that manage the stack, add some checks (for instance prevent resuming an terminated context) etc.

some C++11 features are required:

cxx11_auto_declarations
cxx11_constexpr
cxx11_defaulted_functions
cxx11_final
cxx11_hdr_thread
cxx11_hdr_tuple
cxx11_lambdas
cxx11_noexcept
cxx11_nullptr
cxx11_rvalue_references
cxx11_template_aliases
cxx11_thread_local
cxx11_variadic_templates

from context.

taozhijiang avatar taozhijiang commented on June 3, 2024

I am afraid not.

I notice since v1.61, you introduced execution_context v2, but also introduced a file named detail/disable_overload.hpp, which has 'using' inside, and unfortunately this file was used by all ec types.

So, I think even if I can build boost_context.a with GCC-4.4.7, I can not use this library with GCC-4.4.7 because I can not get rid of detail/disable_overload.hpp. At this point maybe only v1.60.0 can satisfy my requirements.

Am I right?

from context.

olk avatar olk commented on June 3, 2024

For < C++11 you can use the internal API (fcontext-API: make_fcontext/jump_fcontext -> boost::context::detail).
The public API (e.g. fiber, continuation and execution_context<> ) requires C++11.

from context.

taozhijiang avatar taozhijiang commented on June 3, 2024

Got it. thanks.

from context.

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.