From: Hans Fugal Date: Tue, 21 Jul 2015 00:46:42 +0000 (-0700) Subject: Fix "reference to 'thread' is ambiguous" X-Git-Tag: v0.52.0~17 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=d3928f057517858e7cf74649ee23ae60ab771d3f;p=folly.git Fix "reference to 'thread' is ambiguous" Summary: This fixes github issue https://github.com/facebook/folly/issues/243 I don't understand why this is broken on osx, but the solution is to just `#include ` in the header instead of trying to forward declare `std::thread`. Reviewed By: @yfeldblum Differential Revision: D2255026 --- diff --git a/folly/io/async/ScopedEventBaseThread.h b/folly/io/async/ScopedEventBaseThread.h index 60d62d79..fa35f35f 100644 --- a/folly/io/async/ScopedEventBaseThread.h +++ b/folly/io/async/ScopedEventBaseThread.h @@ -17,12 +17,9 @@ #pragma once #include +#include #include -namespace std { -class thread; -} - namespace folly { /**