Re: [eigen] Std Vector again |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Std Vector again
- From: Gael Guennebaud <gael.guennebaud@xxxxxxxxx>
- Date: Sat, 27 Jun 2009 10:19:49 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=sp/z0+WJnZwQTVdVVy1kCU9G4oKeR0/wXpBSkHOQOIM=; b=o08M0E+ptLCL992nugmI3WgE8nTXq68JICL52ZZeG15lhjrbIDBNGxyR3I4JHLoXQs ayOPBo3EoU5BZROZlP4AzTCE4gEVr2qsJKex7K8YG4hxW1p0PAOaP7N0dmwRyEGTA08t b5Q3DilShiLdtuZ7KHMZdNU5vh3rtvNzurrs8=
- 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:content-transfer-encoding; b=M7Ej1nWI/eFPt6793gmDS6pzXQto9Jk6m7cFc8UrHBIQ2BExkYn09W5Xdc37qflEbF yPRI14q0Uo5KpnEwKhY0J6Qu3kqYrL7MxWgmVo/PFJI4NCUGskq1mZn+GnjXp4qtg71a 0Dox8zkQoK1eC+H3JI85C0GS5r26/Loccd2gM=
On Sat, Jun 27, 2009 at 7:49 AM, Benoit Jacob<jacob.benoit.1@xxxxxxxxx> wrote:
>> BTW, it is possible to detect the existence of std::vector::resize(n, t) at
>> compile time and enable the specialization only in that case. That seems
>> more robust than trying to enumerate compiler versions. I can take a crack
>> at that if it sounds useful.
>
> I don't have an opinion there, it's Gael's stuff.
I don't get it, std::vector::resize(n, t) always exists. The
enumeration of compiler versions is needed because: 1 - previous
versions of GCC properly declared resize(size_t, const T&), 2 - to be
as close as possible to the original implementation of the resize(n,t)
function (so we need different versions for GCC,MSVC, etc.)
gael