[linux-audio-dev] Re: templates - little bit OT

From: Kjetil S. Matheussen <kjetil@email-addr-hidden>
Date: Sat Jan 21 2006 - 00:43:20 EET

Lars Luthman:
>
> On Thu, 2006-01-19 at 00:41 +0100, conrad berhörster wrote:
>> class MyClass
>> {
>> MyClass();
>> MyClass(n,n);
>> private:
>> matrix<n,n>
>> };
>>
>> this means, at runtime, i want to set the size of the matrix. is this
>> possible? this are divers concepts (templates and runtime) , aren't they?
>
> It is not possible. Templates are instantiated at compile time.
>

Nah, its possible on the fly to generate code, compile the code, and link
it. I have done that many times.

-- 
Received on Sat Jan 21 04:15:04 2006

This archive was generated by hypermail 2.1.8 : Sat Jan 21 2006 - 04:15:05 EET