Commit 70d3004b authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Fix fibers build on older boost

Summary:
[Folly] Fix `folly/fibers/` build on older boost.

Where `jump_fcontext` takes `intptr_t` rather than an actual pointer, and we warn about implicit conversions from pointers to integral types.

Reviewed By: Orvid

Differential Revision: D6098230

fbshipit-source-id: 61bd7bdff5de728d3febe8b35c97d024ab6f236a
parent 7ebe7c2a
......@@ -106,9 +106,9 @@ class FiberImpl {
boost::context::jump_fcontext(&fiberContext_, mainContext_, 0);
#elif BOOST_VERSION >= 105200
auto context =
boost::context::jump_fcontext(fiberContext_, &mainContext_, nullptr);
boost::context::jump_fcontext(fiberContext_, &mainContext_, 0);
#else
auto context = jump_fcontext(&fiberContext_, &mainContext_, nullptr);
auto context = jump_fcontext(&fiberContext_, &mainContext_, 0);
#endif
DCHECK_EQ(this, reinterpret_cast<FiberImpl*>(context));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment