Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add default assignment operator for various classes #1888

Merged
merged 1 commit into from
Feb 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions clients/roscpp/include/ros/publisher.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ namespace ros
Publisher() {}
Publisher(const Publisher& rhs);
~Publisher();
Publisher& operator=(const Publisher& other) = default;

/**
* \brief Publish a message on the topic associated with this Publisher.
Expand Down
1 change: 1 addition & 0 deletions clients/roscpp/include/ros/service_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class ROSCPP_DECL ServiceClient
ServiceClient(const std::string& service_name, bool persistent, const M_string& header_values, const std::string& service_md5sum);
ServiceClient(const ServiceClient& rhs);
~ServiceClient();
ServiceClient& operator=(const ServiceClient& other) = default;

/**
* @brief Call the service aliased by this handle with the specified request/response messages.
Expand Down
1 change: 1 addition & 0 deletions clients/roscpp/include/ros/service_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class ROSCPP_DECL ServiceServer
ServiceServer() {}
ServiceServer(const ServiceServer& rhs);
~ServiceServer();
ServiceServer& operator=(const ServiceServer& other) = default;

/**
* \brief Unadvertise the service associated with this ServiceServer
Expand Down
1 change: 1 addition & 0 deletions clients/roscpp/include/ros/steady_timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class ROSCPP_DECL SteadyTimer
SteadyTimer() {}
SteadyTimer(const SteadyTimer& rhs);
~SteadyTimer();
SteadyTimer& operator=(const SteadyTimer& other) = default;

/**
* \brief Start the timer. Does nothing if the timer is already started.
Expand Down
1 change: 1 addition & 0 deletions clients/roscpp/include/ros/subscriber.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class ROSCPP_DECL Subscriber
Subscriber() {}
Subscriber(const Subscriber& rhs);
~Subscriber();
Subscriber& operator=(const Subscriber& other) = default;

/**
* \brief Unsubscribe the callback associated with this Subscriber
Expand Down
1 change: 1 addition & 0 deletions clients/roscpp/include/ros/timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class ROSCPP_DECL Timer
Timer() {}
Timer(const Timer& rhs);
~Timer();
Timer& operator=(const Timer& other) = default;

/**
* \brief Start the timer. Does nothing if the timer is already started.
Expand Down
1 change: 1 addition & 0 deletions clients/roscpp/include/ros/wall_timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class ROSCPP_DECL WallTimer
WallTimer() {}
WallTimer(const WallTimer& rhs);
~WallTimer();
WallTimer& operator=(const WallTimer& other) = default;

/**
* \brief Start the timer. Does nothing if the timer is already started.
Expand Down