Hi, i have almost finished the Link test.<br>I have this question:<br>How do i (or what do i do to) handle errors with these functions, in the first what should i do? make the function bool and return true if it was connected?? or throw something with a special error class that i ignore?<br>
<br> void BaseTypedOutControl::Link(BaseTypedInControl& in)<br> {<br> if(IsLinkable(in)){<br> DoTypedLink(in);<br> }<br> /* Throw error with else! ? */<br>
}<br><br>and: <br><br> template<class TypedControlData><br> void TypedOutControl<TypedControlData>::DoTypedLink(BaseTypedInControl& in)<br> {<br> AddLink(dynamic_cast< ProperTypedInControl& >(in));<br>
}<br><br>by the way i send the patch so you have the full code.<br>bye!<br>Francisco<br><br>