[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] StdVector
- From: Hauke Heibel <hauke.heibel@xxxxxxxxxxxxxx>
- Date: Wed, 22 Apr 2009 10:32:48 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=bDa/mGQR6PjXIYzC9k0rXlZsLJIYv9qh4vhchyWQycQ=; b=YouOo2/XH9a42GukMAeWZkGCQmZD9v/Gg/zkVTT9sCC3G9eQhvSs8cJLInTkezLpGV 2ZFzdjSiBjEHnRE/4Fr2HJxcPQIaJO/CxtTU02Nt/vruhOyVesFSe0kv6INmjnXaSG5k qfiBpVwAIMvqfzZB9nHMeWHazvbFCJXbd9fIk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=KYdqkDRt68sMCQNJj/8CoQXH15Cqg3XlexqoNudjwBFL0slTavJRCf7wPc+VXJgFbF 5X84ApthcrSeKwfXN/cDU1dx4R21ws24eq1bUqMqSR+V+CohfiddOmJMOsoet0U4uieF 0UIErRzgMTViN28EqSoipcHjIQqntZ4dplo9k=
> EIGEN_DEFINE_STL_VECTOR_SPECIALIZATION_TPL_<N>(ClassName,
> Type1,Name1,Type2,Name2,Type3,Name3,...));
>
> If we don't want to define one macro per number of template
> arguments, we have to use some advanced meta-preprocessor tricks. For
> instance the API could be:
>
> EIGEN_DEFINE_STL_VECTOR_SPECIALIZATION_TPL(ClassName, NbTplParams,
> (Type1,Name1,Type2,Name2,Type3,Name3,...)));
What about the macro as in the attached example? Does it work on non
VS.net systems?
Regards,
Hauke
Attachment:
MacrosForSpecialization.zip
Description: Zip archive