From 164ef02978e01b3ae494921b43b91ada56e1eca1 Mon Sep 17 00:00:00 2001 From: Abrar Rahman Protyasha Date: Mon, 1 Mar 2021 18:29:48 -0500 Subject: [PATCH] ostream operator overload now returns ostream std::ostream operator overload for `StepTimeData` was previously returning void, which lead to some unexpected behavior with ostream operator chaining. Signed-off-by: Abrar Rahman Protyasha --- robotis_math/src/step_data_define.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/robotis_math/src/step_data_define.cpp b/robotis_math/src/step_data_define.cpp index ac402ae..21f51e4 100644 --- a/robotis_math/src/step_data_define.cpp +++ b/robotis_math/src/step_data_define.cpp @@ -68,6 +68,7 @@ std::ostream& operator<<(std::ostream& out, const StepTimeData& time_data) << time_data.start_time_delay_ratio_roll << "/" << time_data.start_time_delay_ratio_pitch << "/" << time_data.start_time_delay_ratio_yaw << "\n"; out << "[FINISH] " << time_data.finish_time_advance_ratio_x << "/" << time_data.finish_time_advance_ratio_y << "/" << time_data.finish_time_advance_ratio_z << "|" << time_data.finish_time_advance_ratio_roll << "/" << time_data.finish_time_advance_ratio_pitch << "/" << time_data.finish_time_advance_ratio_yaw; + return out; } std::ostream& operator<<(std::ostream& out, const StepData& step_data)