Skip to content

Commit

Permalink
Fix rvalue error
Browse files Browse the repository at this point in the history
(Taken from upstream wg-perception#111)
Update face_detection.cpp
  • Loading branch information
Tobias-Fischer authored and v4hn committed Aug 19, 2024
1 parent 852851c commit e40b21e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion face_detector/src/face_detection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,9 @@ class FaceDetector
else
{
max_id_++;
pos.object_id = static_cast<std::ostringstream*>(&(std::ostringstream() << max_id_))->str();
std::ostringstream oss;
oss << max_id_;
pos.object_id = oss.str();
ROS_INFO_STREAM_NAMED("face_detector", "Didn't find face to match, starting new ID " << pos.object_id);
}
result_.face_positions.push_back(pos);
Expand Down

0 comments on commit e40b21e

Please sign in to comment.