Is it possible to have a class that has template parameters, all of which have default values, so that you can use that class name without specifying a template parameter?

My compiler seems to object to the following code

Code:
template <typename T = int>
class A
{
   ...
};

int main()
{
    ...
    A x;
    ...
    return 0;
}