Re: [eigen] std::swap doesn't work on Map |

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]

*To*: eigen@xxxxxxxxxxxxxxxxxxx*Subject*: Re: [eigen] std::swap doesn't work on Map*From*: joel falcou <joel.falcou@xxxxxx>*Date*: Tue, 06 Apr 2010 09:24:07 +0200

Benoit Jacob wrote:

We already have a swap() that works well in Eigen, depending on two template parameters. It has a different calling syntax: it is a member function. a.swap(b).

and promote its use in place of std::swap ;) Then you will be able to specialize it properly AND let ADL do its tricks.

**Follow-Ups**:**Re: [eigen] std::swap doesn't work on Map***From:*Benoit Jacob

**References**:**[eigen] std::swap doesn't work on Map***From:*Manoj Rajagopalan

**Re: [eigen] std::swap doesn't work on Map***From:*Benoit Jacob

**Re: [eigen] std::swap doesn't work on Map***From:*joel falcou

**Re: [eigen] std::swap doesn't work on Map***From:*Benoit Jacob

**Messages sorted by:**[ date | thread ]- Prev by Date:
**Re: [eigen] std::swap doesn't work on Map** - Next by Date:
**Re: [eigen] std::swap doesn't work on Map** - Previous by thread:
**Re: [eigen] std::swap doesn't work on Map** - Next by thread:
**Re: [eigen] std::swap doesn't work on Map**

Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |