Skip to content

Commit

Permalink
add default assignment operator for various classes (#1888)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas authored Feb 19, 2020
1 parent 688c43d commit fd2e822
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
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

0 comments on commit fd2e822

Please sign in to comment.