Fix resplit | batch
[folly.git] / folly / gen / Core-inl.h
index 973928a601225abe2424e94a4441d412ade3f76f..33aff6b44cbddb651a421c9477e308773d648370 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2014 Facebook, Inc.
+ * Copyright 2015 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -18,6 +18,9 @@
 #error This file may only be included from folly/gen/Core.h
 #endif
 
+#include <type_traits>
+#include <utility>
+
 // Ignore shadowing warnings within this file, so includers can use -Wshadow.
 #pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wshadow"
@@ -90,9 +93,9 @@ class Operator : public FBounded<Self> {
 
  protected:
   Operator() = default;
-  Operator(Operator&&) = default;
+  Operator(Operator&&) noexcept = default;
   Operator(const Operator&) = default;
-  Operator& operator=(Operator&&) = default;
+  Operator& operator=(Operator&&) noexcept = default;
   Operator& operator=(const Operator&) = default;
 };
 
@@ -301,7 +304,7 @@ class Composed : public Operator<Composed<First, Second>> {
   First first_;
   Second second_;
  public:
-  Composed() {}
+  Composed() = default;
 
   Composed(First first, Second second)
     : first_(std::move(first))