added missing includes; also fixed lint issue with noexcept
authorDaniil Burdakov <burdakovd@fb.com>
Wed, 21 May 2014 17:52:03 +0000 (17:52 +0000)
committerAnton Likhtarov <alikhtarov@fb.com>
Mon, 9 Jun 2014 22:34:57 +0000 (15:34 -0700)
Summary: subj

Test Plan: unit tests

Reviewed By: tjackson@fb.com

Subscribers: folly@lists

FB internal diff: D1341693

folly/gen/Core-inl.h

index 973928a601225abe2424e94a4441d412ade3f76f..f0f6608bce6053aee67e91fc165146f3de084729 100644 (file)
@@ -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;
 };