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

Lars Luthman larsl at users.sourceforge.net
Wed Jan 18 23:51:35 UTC 2006


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.

-- 
Lars Luthman
PGP key:     http://www.student.nada.kth.se/~d00-llu/pgp_key.php
Fingerprint: FCA7 C790 19B9 322D EB7A  E1B3 4371 4650 04C7 7E2E
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-dev/attachments/20060119/3e4f850c/attachment.pgp>


More information about the Linux-audio-dev mailing list