From d3928f057517858e7cf74649ee23ae60ab771d3f Mon Sep 17 00:00:00 2001 From: Hans Fugal Date: Mon, 20 Jul 2015 17:46:42 -0700 Subject: [PATCH] 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 --- folly/io/async/ScopedEventBaseThread.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 { /** -- 2.34.1