mirror of
https://github.com/facebook/sapling.git
synced 2024-12-31 00:53:47 +03:00
Remove defaulted move constructors/assignment operators that are implicitly deleted
Summary: Some newer versions of `clang` (such as Apple's version 11) will warn/error out if a constructor or assignment operator marked `default` is implicitly deleted (e.g., if the object contains a non-moveable/non-copyable member). This diff removes all such defaulted constructors/assignment operators, which I ran into while building `edenfs` on my Macbook Pro. Reviewed By: chadaustin, strager Differential Revision: D15901794 fbshipit-source-id: 794ed8377693a6735bb567635dc919bc678751a4
This commit is contained in:
parent
678000ac92
commit
938eb990a6
@ -36,8 +36,8 @@ class RequestData : public folly::RequestData {
|
||||
static const std::string kKey;
|
||||
RequestData(const RequestData&) = delete;
|
||||
RequestData& operator=(const RequestData&) = delete;
|
||||
RequestData(RequestData&&) = default;
|
||||
RequestData& operator=(RequestData&&) = default;
|
||||
RequestData(RequestData&&) = delete;
|
||||
RequestData& operator=(RequestData&&) = delete;
|
||||
explicit RequestData(
|
||||
FuseChannel* channel,
|
||||
const fuse_in_header& fuseHeader,
|
||||
|
@ -106,8 +106,8 @@ class InodeMap {
|
||||
explicit InodeMap(EdenMount* mount);
|
||||
virtual ~InodeMap();
|
||||
|
||||
InodeMap(InodeMap&&) = default;
|
||||
InodeMap& operator=(InodeMap&&) = default;
|
||||
InodeMap(InodeMap&&) = delete;
|
||||
InodeMap& operator=(InodeMap&&) = delete;
|
||||
|
||||
/**
|
||||
* Initialize the InodeMap
|
||||
|
@ -53,8 +53,8 @@ class JournalDelta {
|
||||
enum Renamed { RENAME };
|
||||
enum Replaced { REPLACE };
|
||||
JournalDelta() = default;
|
||||
JournalDelta(JournalDelta&&) = default;
|
||||
JournalDelta& operator=(JournalDelta&&) = default;
|
||||
JournalDelta(JournalDelta&&) = delete;
|
||||
JournalDelta& operator=(JournalDelta&&) = delete;
|
||||
JournalDelta(const JournalDelta&) = delete;
|
||||
JournalDelta& operator=(const JournalDelta&) = delete;
|
||||
JournalDelta(RelativePathPiece fileName, Created);
|
||||
|
@ -117,8 +117,8 @@ namespace /* anonymous namespace for helper functions */ {
|
||||
// Helper class to log where the request completes in Future
|
||||
class ThriftLogHelper {
|
||||
public:
|
||||
ThriftLogHelper(ThriftLogHelper&&) = default;
|
||||
ThriftLogHelper& operator=(ThriftLogHelper&&) = default;
|
||||
ThriftLogHelper(ThriftLogHelper&&) = delete;
|
||||
ThriftLogHelper& operator=(ThriftLogHelper&&) = delete;
|
||||
|
||||
template <typename... Args>
|
||||
ThriftLogHelper(
|
||||
|
Loading…
Reference in New Issue
Block a user