I understand why it boost::signalcannot be copied (because copying the signal does not have a clear meaning), but I need its version, which provides some copy of ctor (either no-op, or copies all connections).
The reason why I need this is because in my project many objects become not copyable only due to the presence of signals and for processing them with convenient value semantics (shared_ptrs are not so convenient) I need to manually provide copy-ctors, violating DRY Obviously, such a quasi-copied signal would be a good workaround for C ++ ugliness.
The first solution that comes to mind inherits signaland provides a copy of ctor in a derived class, but this does not mean that the signal does not have a virtual dtor.
Thoughts?
Iraimbilanja
source
share