Re: [eigen] Proposal for STL containers helper templates |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Proposal for STL containers helper templates
- From: Jose Luis Blanco <joseluisblancoc@xxxxxxxxx>
- Date: Tue, 23 Nov 2010 20:21:48 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=ny/kWolrckYWJIrPl7GNaX7efYFxl/yZDSLge2AOdVM=; b=xmgex4Xa5RQO0HFh2vYAjOiSAb2Z/6uD4Q5s6JeSh1rOHtgiOq/SVlc3V5obg28BgW 1nR65fwkh8C3nGxQpclEkPDA14p45eR2/z8Zg0M2bWd2LAVNYCyfQ6X3ASICR9dFzUUp hhRVTML4i3VRgm8anh8XEGTEyduC+WbITLLC0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=jezwY4b4iaIQ2KmcqySLuly0BZ0JK+RFTOvmAlhNbZH66BSxHzuGZY2qJzgdAYg01/ PMkkK0HfZCHx7xzwHVp46bKRk02n5ZV925oM4RTHrUmVr+L022on4ZzJ6LnzkdelmQ1U zDmfhZvLWlvN62c2d+264J3J8mBPb75ywey/g=
> Not quite: you'd still need a typename keyword:
>
> typename aligned_containers<int,MatrixXd>::map_t myVar;
Hmm...I *think* "typename" would be needed only within templates when
either KEY or VALUE in <KEY,VALUE> themselves are template
arguments...
> I'm not really in favor of having this in Eigen: it's not our job to
> make the STL's API easier, this is quite orthogonal to Eigen except
> for the fact that we provide one STL allocator, and different users
> may prefer different solutions (looks like a matter of taste).
....but in any case, OK, it's a minor issue not strongly related to
Eigen. So to my code it goes then!
Benoit, thanks for your quick answer!
JL