Re: [eigen] std::swap doesn't work on Map |
[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]
Benoit Jacob wrote:
What I tell you is to have a eigen::swap(a,b) free function in eigen namespaceWe 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.
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |