Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.c    |    Meh, in C you gotta define EVERYTHING    |    243,242 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 241,436 of 243,242    |
|    tTh to David Brown    |
|    Re: bugprone-switch-missing-default-case    |
|    23 Oct 25 23:57:11    |
   
   From: tth@none.invalid   
      
   On 10/23/25 22:40, David Brown wrote:   
   > Personally, I usually prefer to have the "last", "max", or "count"   
   > indicator outside the enumeration :   
   >   
   > enum E1 { A, B, C, D };   
   > static const int count_of_E1 = D;   
      
    Why did you use 'static' here ?   
      
   --   
   ** **   
   * tTh des Bourtoulots *   
   * http://maison.tth.netlib.re/ *   
   ** **   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca