Hi following is the .cpp file
//file1.cpp
#include<iostream>
#include"template1.h"
using namespace std;
using x::abc<int>;
int main()
{
return 0;
}
//HEADER FILE
//template1.h
#include<iostream>
using namespace std;
namespace x
{
template<class T>
class abc
{
public:
T a;
};
}
if i compile the above code then g++ gives a error message
parse error before ; in line 4..
does anyone has some idea???