code:
template >
class stack
{
public:
stack() {}
temp
You attempt to provide a default argument for the second template parameter to stack
twice. Default template arguments, just like default function arguments, may only be defined once (per translation unit); not even repeating the exact same definition is allowed.
Just type the default argument at the beginning where you define the class template. After that, leave it out:
template
bool stack::empty(){
return container.empty();
}