Trying to build an iPhone app...
I am getting an error message:
error: expected unqualified-id before 'template'
----> On the line below...
template <class T>
class Stack {
public:
Stack() { top = -1; }
void push(T i)
{ st[++top] = i; }
T pop()
{ return st[top--]; }
private:
int top;
T st[100];
};
I took the file called TestApAppDelegate.m and renamed it to mm....
this test template class was added to that file...
Any idea what is going on?