Commit 4459989b authored by Hans Fugal's avatar Hans Fugal Committed by dcsommer

(wangle) Fix a couple compilation issues

Summary: If you try to include files in a weird (but not incorrect) order you get compilation errors. No longer!

Test Plan: new dummy `cpp_binary` target

Reviewed By: davejwatson@fb.com

Subscribers: trunkagent, folly-diffs@, net-systems@, fugalh, exa, njormrod

FB internal diff: D1621083
parent 831405dc
...@@ -29,6 +29,12 @@ ...@@ -29,6 +29,12 @@
namespace folly { namespace wangle { namespace folly { namespace wangle {
namespace detail {
template <class> struct Core;
template <class...> struct VariadicContext;
}
template <class> struct Promise;
template <typename T> struct isFuture; template <typename T> struct isFuture;
template <class T> template <class T>
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
#pragma once #pragma once
#include <folly/wangle/Try.h> #include <folly/wangle/Try.h>
#include <folly/wangle/Future.h>
namespace folly { namespace wangle { namespace folly { namespace wangle {
...@@ -98,4 +97,5 @@ private: ...@@ -98,4 +97,5 @@ private:
}} }}
#include <folly/wangle/Future.h>
#include <folly/wangle/Promise-inl.h> #include <folly/wangle/Promise-inl.h>
...@@ -16,6 +16,10 @@ ...@@ -16,6 +16,10 @@
#pragma once #pragma once
#include <type_traits>
#include <exception>
#include <algorithm>
namespace folly { namespace wangle { namespace folly { namespace wangle {
template <class T> template <class T>
......
/*
* Copyright 2014 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// amazing what things can go wrong if you include things in an unexpected
// order.
#include <folly/wangle/Try.h>
#include <folly/wangle/Promise.h>
#include <folly/wangle/Future.h>
int main() { return 0; }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment