Author: Reinhard Scharnagl
Date: 07:49:04 11/24/03
Go up one level in this thread
Hi Daniel,
in C++ from MS VStudio .Net 2003 following works, but not in MS VStudio 6:
FILE Model.h:
template <int colour> void print(void)
{
std::cout << colour << std::endl;
}
File Model.cpp:
#include <iostream>
using namespace std;
#include "Model.h"
int main()
{
print<0>();
print<1>();
return 0;
}
So it seems to be an interesting solution to my problem.
I will check, wether it also works in Borland C++ Builder 6.
Thank you, Reinhard.
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.