[Insight-developers] help with template function problem
Luis Ibanez
ibanez@choroid.cs.unc.edu
Thu, 18 Oct 2001 06:32:47 -0400 (EDT)
Oops !,
take out the "static"
Sorry,
BTW, I only tested it on Linux,
which may not be quite helpful
---------------
It should be:
template<unsigned int VNumber>
void tfunction( )
{
enum { WakeUpVC = VNumber };
unsigned int temp = WakeUpVC;
std::cout << temp << std::endl;
}
---------------------------
On Thu, 18 Oct 2001, Luis Ibanez wrote:
>
> Hi Lydia,
>
> maybe adding an enum could
> help to wake VC++ up
>
>
> template<unsigned int VNumber>
> void tfunction( )
> {
> static enum { WakeUpVC = VNumber };
>
> unsigned int temp = WakeUpVC;
> std::cout << temp << std::endl;
> }
>