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

conrad berhörster conrad.berhoerster at gmx.de
Wed Feb 8 12:08:12 UTC 2006


Sorry, I'm a little bit to late with this reply. 
but can you give me a hint, how you have done that
gcc will refuse that. 

thanks c~ 
Am Freitag 20 Januar 2006 23:43 schrieb Kjetil S. Matheussen:
> 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.
>
>
> --



More information about the Linux-audio-dev mailing list