problem in template function. compiles in vc++ not in gcc 3.0.4
The following sample code compiles and executes perfectly in vc++. But gcc is
parse error before `::' token in the line
std::string test=b::c::d; in the following program
I think its not correct to complain since itz a template kind of thing
and the compiler is not going to reserve any space for the template function since i have not implemented it.
can anybody throw light on this.
thanks in advance,
using namespace std;
template<typename a,typename b> void
cout<<"just for test";