Re: About template!

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Simon Trew (ten.egnaro_at_werts)
Date: 02/23/04


Date: Mon, 23 Feb 2004 15:16:53 -0000

Hmm, Kim says extern, you say static. Either way , I can't get it to work.

I agree with you that you have to wonder why you'd want this on a char*.
But a more general pointer argument might occasionally be useful to supply
something along the lines of a "traits class" if, for some reason, the
usually way of doing a traits class was not possible.

S.

"Crosbie Fitch" <crosbie@cyberspaceengineers.org> wrote in message
news:c1csnj$5u3$1@sparta.btinternet.com...
>
> "Kim Gräsman" <kim@mvps.org> wrote in message
> news:O7lxYYg%23DHA.3232@TK2MSFTNGP10.phx.gbl...
> Non-type parameters either need to be integral constants or static & named
> pointers.
> Some compilers may let you get away with literal strings.
>
> (hacks snipped)
> But, at the end of the day, you've got to ask yourself "Why the hell am I
> passing a string to a template?"
>
>