but how would you properly have reference or pointer to Stage as member of class for later calls ?
something like this:
- class MetaPipeline
- {
- public:
- MetaPipeline(){
- p_ = std::make_unique<Metavision::Pipeline>(true);
- }
- void AddStages(){
- cam_stage_ = p_->add_stage(std::make_unique<Metavision::CameraStage>(std::move(cam), opt_.event_buffer_duration_ms));
- }
- std::unique_ptr <Metavision::Pipeline> p_;
- Metavision::CameraStage & cam_stage_;
- }
but:
function "Metavision::CameraStage::operator=(Metavision::CameraStage &)" (declared implicitly) cannot be referenced -- it is a deleted function