… | |
… | |
108 | |
108 | |
109 | attachable_base (const attachable_base &src) |
109 | attachable_base (const attachable_base &src) |
110 | : self (0), cb (0), attach (src.attach) |
110 | : self (0), cb (0), attach (src.attach) |
111 | { |
111 | { |
112 | } |
112 | } |
|
|
113 | |
|
|
114 | attachable_base &operator = (const attachable_base &src) |
|
|
115 | { |
|
|
116 | clear (); |
|
|
117 | attach = src.attach; |
|
|
118 | return *this; |
|
|
119 | } |
113 | }; |
120 | }; |
114 | |
121 | |
115 | // objects attachable from perl (or any other extension) should include or |
122 | // objects attachable from perl (or any other extension) should include or |
116 | // derive using the curiously recurring template pattern, to avoid |
123 | // derive using the curiously recurring template pattern, to avoid |
117 | // virtual method calls etc. |
124 | // virtual method calls etc. |