Here\'s my problem:
I have two classes like these:
class Signal { public: void connect(...) { sig.connect(.
After writing this question I added a public copy constructor to Signal and now it works.