Skip to content

Commit

Permalink
Made copying rosbag::Bag a compiler error to prevent crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Rakowski authored and racko committed Feb 25, 2017
1 parent 1246727 commit 9b80a77
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/rosbag_storage/include/rosbag/bag.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ class ROSBAG_DECL Bag
boost::shared_ptr<ros::M_string> connection_header = boost::shared_ptr<ros::M_string>());

private:
Bag(const Bag&);
Bag& operator=(const Bag&);

// This helper function actually does the write with an arbitrary serializable message
template<class T>
void doWrite(std::string const& topic, ros::Time const& time, T const& msg, boost::shared_ptr<ros::M_string> const& connection_header);
Expand Down

0 comments on commit 9b80a77

Please sign in to comment.