Fix "reference to 'thread' is ambiguous"
authorHans Fugal <fugalh@fb.com>
Tue, 21 Jul 2015 00:46:42 +0000 (17:46 -0700)
committerfacebook-github-bot-4 <folly-bot@fb.com>
Tue, 21 Jul 2015 23:52:44 +0000 (16:52 -0700)
commitd3928f057517858e7cf74649ee23ae60ab771d3f
tree2ae4fe6e31b7c12ac04da0c747a00b12e2ead914
parent58ddb58be76d43be88709cd45afabe0c785ea9e2
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 <thread>` in the header instead of trying to forward declare `std::thread`.

Reviewed By: @yfeldblum

Differential Revision: D2255026
folly/io/async/ScopedEventBaseThread.h