eclipse-iceoryx / iceoryx

Eclipse iceoryx™ - true zero-copy inter-process-communication
https://iceoryx.io
Apache License 2.0
1.68k stars 393 forks source link

Can't use static initializers for subscribers due to deleted move semantics #77

Closed Karsten1987 closed 4 years ago

Karsten1987 commented 4 years ago

This is more like a question than an issue, but why are the move semantics deleted for a subscriber?

https://github.com/eclipse/iceoryx/blob/e588ccbc8886aab208eca50f88c89dde09a0d137/iceoryx_posh/include/iceoryx_posh/popo/subscriber.hpp#L62-L64

That makes static initializers a bit complicated as the implicit RVO is disabled.

Karsten1987 commented 4 years ago

Nevermind, looks like implementing a custom MoveConstructor might be quite cumbersome.