Add ScopeGuard.h include in places where it is needed.
authorEric Niebler <eniebler@fb.com>
Thu, 1 Sep 2016 18:06:06 +0000 (11:06 -0700)
committerFacebook Github Bot 5 <facebook-github-bot-5-bot@fb.com>
Thu, 1 Sep 2016 18:08:38 +0000 (11:08 -0700)
Summary: Fix code that is transitively including ScopeGuard.h via FBString.h.

Reviewed By: yfeldblum

Differential Revision: D3801328

fbshipit-source-id: 7e1dc37cd6dd3aa691dd1baf31385d3a8c51eed0

folly/futures/detail/Core.h
folly/test/ThreadNameTest.cpp

index 7ef597a096715e0784867bcf1ef132a5477d6036..66a6e74c503dcd59b8710899f89587c1093f889a 100644 (file)
 #include <folly/Function.h>
 #include <folly/MicroSpinLock.h>
 #include <folly/Optional.h>
+#include <folly/ScopeGuard.h>
+#include <folly/Try.h>
 #include <folly/futures/Future.h>
 #include <folly/futures/Promise.h>
-#include <folly/Try.h>
 #include <folly/futures/detail/FSM.h>
 
 #include <folly/io/async/Request.h>
index ec59687ad543d2ba748e196fb517abe8ce0d6a58..b4618c370939f5428172672e47f30f4018db7559 100644 (file)
@@ -16,6 +16,7 @@
 
 #include <thread>
 #include <folly/Baton.h>
+#include <folly/ScopeGuard.h>
 #include <folly/ThreadName.h>
 #include <gtest/gtest.h>