[eigen] patch to allow different aligned allocators with STL containers |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: [eigen] patch to allow different aligned allocators with STL containers
- From: Kenneth Riddile <kfriddile@xxxxxxxxx>
- Date: Tue, 27 Jul 2010 18:18:01 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=2cEb6oxjl49hLUTPZqyjCorVGgvm3XBahVA2oyQJcjo=; b=Na3RfaBYxcaKnKncAMUh+eyEKTFmvyn6hsG3XFxQFDXyW4wb7CiKgcH8Ti3lcZS2nH trLfDhDetK9NIAhHlbhxI3q92HcufsYTWFGsDCcV1KDwyPG8ckSy2D5d6PGnDodyjra3 bTbmzxCVYcoVVDPTi2Ywpk5y1SLCjk1H5bFoY=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=CDUe17gx2k6Q9u8U64JKZJmXlWgvaMfFK848+3ksOKk9qmJ3Q7vhtkaytVUozKtA0e fsVHGi1d6hDHiKiOtJlE8xTmf4SYI1Amy1MWR+DWQArozlIKYd5JnwyA2iy3AksvAECM nQcBBJ8pqwe4zk6/EN2136SiAKD3VvRpyEOOI=
Attached is a patch that addresses the following post on the user forum:
The patch also includes my attempt at adding std::deque support. I basically copied the std::vector implementation and modified it. It still doesn't compile under MSVC and I'm not sure why. MSVC still complains that the type won't be aligned due to std::deque::resize() even though I can plainly see in the compiler output that it's instantiating the partial specialization. I'm probably just missing something simple, but I can't make it work. Anyways, I included that in the patch as well in the hopes that someone might have the time to look at it since std::deque support is something I really need :)
-Kenny Riddile
Attachment:
eigen_rev3306.patch
Description: Binary data