Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #71225

Re: explicit specialization problem

From Manfred <noname@add.invalid>
Newsgroups comp.lang.c++
Subject Re: explicit specialization problem
Date 2020-01-08 16:28 +0100
Organization Aioe.org NNTP Server
Message-ID <qv4sen$3b5$1@gioia.aioe.org> (permalink)
References (8 earlier) <qv4g8q$m28$1@news.albasani.net> <1bf3538e-caec-401f-a3c2-69f53d60ee73@googlegroups.com> <qv4o5e$18f$1@news.albasani.net> <d2ea939d-3dfb-4bb4-9928-1333a27b23c8@googlegroups.com> <qv4qcj$r59$1@news.albasani.net>

Show all headers | View raw


On 1/8/2020 3:53 PM, Bonita Montero wrote:
> Am 08.01.2020 um 15:48 schrieb Öö Tiib:
>>> If you have a template-specialization of a class that implements
>>> all template-parameters it is headed with "template<>".
> 
>> But not with "template<> template<typename T>"
> 
> No, that's not related to the specialization-part.

After restoring proper (rudely removed) attributions,

Alf P. Steinbach wrote:
> Bonita Montero wrote: 
>> template<>
>> template<typename T>
>> struct Lib<My<T>>
>> {
>>      void f();
>> };
> 
> The `template<>` does not make sense here.

It is clearly related to specialization. Ref:

template<typename T>
struct S
{
};

template<typename T>
struct S<T*>
{
};

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

explicit specialization problem Bonita Montero <Bonita.Montero@gmail.com> - 2020-01-07 11:26 +0100
  Re: explicit specialization problem Ian Collins <ian-news@hotmail.com> - 2020-01-08 10:26 +1300
  Re: explicit specialization problem "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2020-01-07 23:23 +0100
    Re: explicit specialization problem Bonita Montero <Bonita.Montero@gmail.com> - 2020-01-08 07:29 +0100
      Re: explicit specialization problem "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-01-07 22:34 -0800
        Re: explicit specialization problem Bonita Montero <Bonita.Montero@gmail.com> - 2020-01-08 07:46 +0100
          Re: explicit specialization problem Öö Tiib <ootiib@hot.ee> - 2020-01-07 22:58 -0800
            Re: explicit specialization problem Bonita Montero <Bonita.Montero@gmail.com> - 2020-01-08 10:36 +0100
              Re: explicit specialization problem Öö Tiib <ootiib@hot.ee> - 2020-01-08 03:56 -0800
                Re: explicit specialization problem Bonita Montero <Bonita.Montero@gmail.com> - 2020-01-08 13:00 +0100
                Re: explicit specialization problem Öö Tiib <ootiib@hot.ee> - 2020-01-08 06:02 -0800
                Re: explicit specialization problem Bonita Montero <Bonita.Montero@gmail.com> - 2020-01-08 15:15 +0100
                Re: explicit specialization problem Öö Tiib <ootiib@hot.ee> - 2020-01-08 06:48 -0800
                Re: explicit specialization problem Bonita Montero <Bonita.Montero@gmail.com> - 2020-01-08 15:53 +0100
                Re: explicit specialization problem Öö Tiib <ootiib@hot.ee> - 2020-01-08 07:16 -0800
                Re: explicit specialization problem Manfred <noname@add.invalid> - 2020-01-08 16:28 +0100
                Re: explicit specialization problem Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-01-08 15:00 +0000
                Re: explicit specialization problem "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-01-08 14:44 -0800
                Re: explicit specialization problem Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-01-09 02:20 +0000
                Re: explicit specialization problem "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-01-08 19:42 -0800
                Re: explicit specialization problem Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-01-09 18:17 +0000
                Re: explicit specialization problem Jorgen Grahn <grahn+nntp@snipabacken.se> - 2020-01-09 19:40 +0000
                Re: explicit specialization problem Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-01-09 21:21 +0000

csiph-web