oneTBB icon indicating copy to clipboard operation
oneTBB copied to clipboard

Feature request: move semantics for flow graph outputs

Open Lawrencemm opened this issue 6 years ago • 2 comments

I'd like to request adding the ability to send and receive types which are not copy constructible in a flow graph.

Obviously this makes sense only if there is exactly one edge coming from the output port to one input port.

Given the input/output ports are set at compile time, it seems possble to have a specialization for non copy constructible types that throws an exception if more than one edge is created from an output port for such a type.

Sometimes it is desirable to have a heavy object live entirely within the flow graph. One can use a shared_ptr, however that is not always compatible with the existing architecture.

Lawrencemm avatar Apr 24 '19 22:04 Lawrencemm

@aleksei-fedotov is this still relevant?

arunparkugan avatar Aug 13 '24 11:08 arunparkugan

@aleksei-fedotov is this still relevant?

I would say yes as I cannot remember the work on this enhancement had been considered, but I may be wrong here. It is better ask people who recently worked with the flow graph code. @kboyarinov, @pavelkumbrasev

aleksei-fedotov avatar Aug 14 '24 10:08 aleksei-fedotov