You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copying (or moving in C++11 and later) rosbag::Bag causes crashes. I guess that Bags are not meant to be copied / moved. Using C++11 semantics, copying does not make sense, just as std::fstream is not copyable. Making them movable would be a benefit in C++11 but since rosbag_storage uses C++98, we cannot implement move assignment / move constructors explicitly and would have to use copy assignment / copy constructors instead, which is considered a bad design. A swap() member function should be implemented to do that. Copy assignment and copy constructor should be disabled by making them private without giving an implementation.
Copying (or moving in C++11 and later) rosbag::Bag causes crashes. I guess that Bags are not meant to be copied / moved. Using C++11 semantics, copying does not make sense, just as std::fstream is not copyable. Making them movable would be a benefit in C++11 but since rosbag_storage uses C++98, we cannot implement move assignment / move constructors explicitly and would have to use copy assignment / copy constructors instead, which is considered a bad design. A swap() member function should be implemented to do that. Copy assignment and copy constructor should be disabled by making them private without giving an implementation.
The text was updated successfully, but these errors were encountered: