On 01/14/2015 05:04 PM, Patrick Palka wrote:
Did this define a specialization too:

    struct X<5> { };

Yes.  There's an example in the ARM that says

A class can be defined as the definition of a template class.  For example,

  template<class T> class stream { /* ... */ };
  class stream<char> { /* ... */ };

Here, the class declaration will be used as the definition of streams of characters (stream<char>). Other streams will be handled by template functions generated from the class template.

Jason


Reply via email to