Re: About template!
From: Simon Trew (ten.egnaro_at_werts)
Date: 02/23/04
- Next message: Simon Trew: "Re: Problem in using COM object in .NET"
- Previous message: Headache: "Re: COM returning error code..."
- In reply to: Crosbie Fitch: "Re: About template!"
- Next in thread: Crosbie Fitch: "Re: About template!"
- Reply: Crosbie Fitch: "Re: About template!"
- Messages sorted by: [ date ] [ thread ]
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?"
>
>
- Next message: Simon Trew: "Re: Problem in using COM object in .NET"
- Previous message: Headache: "Re: COM returning error code..."
- In reply to: Crosbie Fitch: "Re: About template!"
- Next in thread: Crosbie Fitch: "Re: About template!"
- Reply: Crosbie Fitch: "Re: About template!"
- Messages sorted by: [ date ] [ thread ]