Remove unnecessary includes from Optional.h
authorScott Wolchok <swolchok@fb.com>
Mon, 1 Feb 2016 21:17:55 +0000 (13:17 -0800)
committerfacebook-github-bot-1 <folly-bot@fb.com>
Mon, 1 Feb 2016 22:20:26 +0000 (14:20 -0800)
Summary:
I want to be able to include this in
fbobjc/xplat/folly:headers_only, but it currently pulls in a boost
header and Portability.h. Fortunately, neither of those includes are
needed.

Reviewed By: ddrcoder, yfeldblum, mhorowitz

Differential Revision: D2880443

fb-gh-sync-id: 409561b8fb555ac3946d59cd6657c6c643b67c86

folly/Optional.h
folly/test/OptionalTest.cpp

index 1832009054bb3a42ea71981837083dc20f7e15d7..38f198fdc5f8fc0cb02cd95d4c8880769beac1e0 100644 (file)
 #include <type_traits>
 #include <utility>
 
-#include <boost/operators.hpp>
-
-#include <folly/Portability.h>
-
 namespace folly {
 
 namespace detail { struct NoneHelper {}; }
index bcf08476a768411a52328658378dff0d0f6938f3..75b9ddf26902a7a3b99413daf65e088b2477730e 100644 (file)
@@ -15,6 +15,7 @@
  */
 
 #include <folly/Optional.h>
+#include <folly/Portability.h>
 
 #include <memory>
 #include <vector>