Re: Best practice? Constant number in class
  Home FAQ Contact Sign in
comp.lang.c++.moderated only
 
Advanced search
POPULAR GROUPS

more...

comp.lang.c++.moderated Profile…
 Up
Re: Best practice? Constant number in class         


Author: nickf3
Date: Apr 4, 2007 09:00

> An illegal template parameter, a preprocessor macro, and template
> specializations for something that can be solved in a very simple way by
> using an unnamed namespace, or by defining the static member in the
> implementation file - that's rather contorted.
>
> --
> Gerhard Menzl

Oops, that's what one gets for not testing the
code before posting :) Thanks for correcting.
Though that wasn't and ... and ... and ... but
rather or ... or ... or ...
What I actually wanted to say is that for
*integral* constants I prefer to have an
explicit knob I can turn different ways,
and that it totally depends on the context.
--
Nick
Show full article (0.78Kb)
no comments