As next procedure:
// tplate.cpp: defines the entry point for the console application.///
#include "stdafx.h"
Template void render (void) {Printf ("% d / n", a);
}
INT Main (int Argc, char * argv []) {printf ("Hello World! / N"); render <1> (); // wants render to play 1 render <2> (); // want reender Open 2 render <3> (); // I want render to play 3 returnography;}
The result of the VC6 compiled is that all three render prints 3, and it is correct to compile .NET.
Is it that VC6 does not support such a function template? But why didn't even a warning? Or do you want to include any header file or have any compilation options that have not been opened.
Please advise.