mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-15 08:25:07 +03:00
libamera: pipeline: rkisp1: timeline: Fix compilation with gcc-[56]
With gcc 5 and 6, insertion in a std::multimap copies the pair passed as an argument to the insert() method. As the mapped type is a non-copyable std::unique_ptr<>, this fails to compile. Compilation with newer gcc versions succeed due to support for C++-17 and the fix described in https://cplusplus.github.io/LWG/issue2354. To support gcc 5 and 6, fix the issue by using std::multimap::emplace(). Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
parent
8647991cd8
commit
f3c53dbf53
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ void Timeline::scheduleAction(std::unique_ptr<FrameAction> action)
|
||||||
<< ", run now " << utils::time_point_to_string(now);
|
<< ", run now " << utils::time_point_to_string(now);
|
||||||
action->run();
|
action->run();
|
||||||
} else {
|
} else {
|
||||||
actions_.insert({ deadline, std::move(action) });
|
actions_.emplace(deadline, std::move(action));
|
||||||
updateDeadline();
|
updateDeadline();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue