<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 27, 2013 at 6:20 PM, John Thompson <span dir="ltr"><<a href="mailto:John.Thompson.JTSoftware@gmail.com" target="_blank" class="cremed">John.Thompson.JTSoftware@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":q3d"> struct Entry {<br>
- enum Kind {<br>
+ enum KindType {<br>
Tag,<br>
Value,<br>
Macro<br>
} Kind;<br>
+ static const int NumberOfKinds = 3;</div></blockquote></div><br>Err...</div><div class="gmail_extra"><br></div><div class="gmail_extra">Check out the coding standards for thinks like "kind" enums. I think there is a much better pattern to follow here:</div>
<div class="gmail_extra"><br></div><div class="gmail_extra" style>struct Entry {</div><div class="gmail_extra" style> enum EnttryKind {</div><div class="gmail_extra" style> EK_Tag,</div><div class="gmail_extra" style>
EK_Value,</div><div class="gmail_extra" style> EK_Macro,</div><div class="gmail_extra" style><br></div><div class="gmail_extra" style><br></div></div>