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

Guard the forward declaration of fibers::Baton

Summary: [Folly] Guard the forward declaration of `fibers::Baton` by the same condition which determines whether `fibers::Baton` is ever used in futures.

Reviewed By: lewissbaker

Differential Revision: D17962552

fbshipit-source-id: 2494026999cd170c36adec91108732254212abf1
parent 54a20c00
...@@ -108,10 +108,14 @@ class SemiFuture; ...@@ -108,10 +108,14 @@ class SemiFuture;
template <class T> template <class T>
class FutureSplitter; class FutureSplitter;
#if FOLLY_FUTURE_USING_FIBER
namespace fibers { namespace fibers {
class Baton; class Baton;
} }
#endif
namespace futures { namespace futures {
namespace detail { namespace detail {
template <class T> template <class T>
......
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