On Sat, Mar 29, 2008 at 3:58 PM, Steven Watanabe &lt;<a href="mailto:watanabesj@gmail.com">watanabesj@gmail.com</a>&gt; wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
AMDG<br>
<div class="Ih2E3d"><br>
Robert Dailey wrote:<br>
&gt; Well I&#39;m not 100% sure of the performance impact RTTI will have on the<br>
&gt; application. What I&#39;ve read is that RTTI can get very expensive in<br>
&gt; terms of executable size if you have a lot of classes in your application.<br>
<br>
</div>You should be able to switch between using RTTI and using ID&#39;s in the<br>
dispatcher with<br>
a few lines of code. &nbsp;*Measure the difference* before making decisions<br>
for performance<br>
considerations.<br>
<div class="Ih2E3d"><br>
&gt; Unfortunately I don&#39;t think I could get away with using strings since<br>
&gt; the network is assigning integral values to the packets in order to<br>
&gt; uniquely identify them.<br>
</div>Of course, if you need the ID&#39;s around anyway for other reasons, they are<br>
not a problem. &nbsp;I wouldn&#39;t expend Herculean efforts to eliminate them.<br>
<div class="Ih2E3d"><br>
&gt; I like the string idea because it doesn&#39;t have the repetitive code in<br>
&gt; each derived class (the overridden GetID method that will be the same<br>
&gt; in each derived class).<br>
<br>
</div>struct WalkPacket : CRTPPacket&lt;WalkPacket, PID_WALKPACKET&gt; {}; ?</blockquote></div><br>What exactly is this structure supposed to present?<br>