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
boost::context::jump_fcontext(&fiberContext_, mainContext_, 0);
#elif BOOST_VERSION >= 105200
auto context =
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);
- auto context = jump_fcontext(&fiberContext_, &mainContext_, nullptr);
+ auto context = jump_fcontext(&fiberContext_, &mainContext_, 0);
#endif
DCHECK_EQ(this, reinterpret_cast<FiberImpl*>(context));
}
#endif
DCHECK_EQ(this, reinterpret_cast<FiberImpl*>(context));
}