Home

Hi!

Ondra Holub schrieb:
> On 16 Srp, 14:48, Frank Birbacher <bloodymir.c...@gmx.net> wrote:
>> //generic
>> template<typename T>
>> void process(T t) {}
>>
>> //partial specialization
>> template<typename T>
>> void process(T* const t) {}

Is the above really a "full specialization"? o_O

> Yes. it works. But it is full specialization, not partial
> specialization. Try following:
>
> template<typename T, int N>
> void Func()
> {
> }
>
> template<typename T>
> void Func<T, 10>()
> {
> }

-.- ok, fails. But why? I don't understand this restriction, especially
because classes can be partially specialized.

Frank

previous
next

Tuning - Styling
MemoryError on reading mbox file
Re: creating really big lists
Re: 64 bit integers etc...
Re: Returning (char *) from a function - memory problem
Fundacja Hobbit
Fundacja Avalon
Mam Marzenie
Krwinka
Nasze Dzieci