Declaring a copy constructor and assignment operator without an
implementation will prevent copy and assignment, but it will be
caught only during linking. Deleting them moves the checking to
compile time.
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
public:
explicit MonClient(CephContext *cct_);
+ MonClient(const MonClient &) = delete;
+ MonClient& operator=(const MonClient &) = delete;
~MonClient();
int init();
void handle_get_version_reply(MMonGetVersionReply* m);
- MonClient(const MonClient &rhs);
- MonClient& operator=(const MonClient &rhs);
};
#endif