X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=folly%2Fgen%2FCore-inl.h;h=33aff6b44cbddb651a421c9477e308773d648370;hb=a0198f14f7a4e29159ac959d56770380c447b2bc;hp=973928a601225abe2424e94a4441d412ade3f76f;hpb=d3cc50e00280b1ca5ffd4f713ac312181b1d6810;p=folly.git diff --git a/folly/gen/Core-inl.h b/folly/gen/Core-inl.h index 973928a6..33aff6b4 100644 --- a/folly/gen/Core-inl.h +++ b/folly/gen/Core-inl.h @@ -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 +#include + // 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 { 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> { First first_; Second second_; public: - Composed() {} + Composed() = default; Composed(First first, Second second) : first_(std::move(first))