Skip to content

Commit

Permalink
Comply with the rule of 5
Browse files Browse the repository at this point in the history
Signed-off-by: Geoffrey Biggs <gbiggs@killbots.net>
  • Loading branch information
gbiggs committed Oct 3, 2021
1 parent 06d3afd commit 8a9a1f9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rclcpp/include/rclcpp/time_source.hpp
Expand Up @@ -76,6 +76,11 @@ class TimeSource

// The TimeSource is uncopyable
TimeSource(const TimeSource &) = delete;
TimeSource & operator=(const TimeSource &) = delete;

// The TimeSource is moveable
TimeSource(TimeSource &&) = default;
TimeSource & operator=(TimeSource &&) = default;

/// Attach node to the time source.
/**
Expand Down

0 comments on commit 8a9a1f9

Please sign in to comment.