… | |
… | |
99 | attachable_base () |
99 | attachable_base () |
100 | { |
100 | { |
101 | attachable_clear (); |
101 | attachable_clear (); |
102 | } |
102 | } |
103 | |
103 | |
|
|
104 | ~attachable_base () |
|
|
105 | { |
|
|
106 | clear (); |
|
|
107 | } |
|
|
108 | |
104 | attachable_base (const attachable_base &src) |
109 | attachable_base (const attachable_base &src) |
105 | : self (0), cb (0), attach (src.attach) |
110 | : self (0), cb (0), attach (src.attach) |
106 | { |
111 | { |
|
|
112 | } |
|
|
113 | |
|
|
114 | attachable_base &operator = (const attachable_base &src) |
|
|
115 | { |
|
|
116 | clear (); |
|
|
117 | attach = src.attach; |
|
|
118 | return *this; |
107 | } |
119 | } |
108 | }; |
120 | }; |
109 | |
121 | |
110 | // objects attachable from perl (or any other extension) should include or |
122 | // objects attachable from perl (or any other extension) should include or |
111 | // derive using the curiously recurring template pattern, to avoid |
123 | // derive using the curiously recurring template pattern, to avoid |