This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix PR c++/16160


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]