[eigen] StdVector

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


Just ran into a problem mixing boost and eigen. Simplified, it comes
down to this short snippet for a test case:


#include <Eigen/StdVector>

/*****************************************************************************
** Main
*****************************************************************************/

int main() {
    int entries[] = {4,2};

    std::vector<int> v(entries,entries+1);

    return 0;
}

It works if I change the iterator constructor entry in StdVector from:

    vector(iterator start, iterator end) : vector_base(start, end) {}  \

to:

template<typename Iter> \
    vector(Iter start, Iter end) : vector_base(start, end) {}  \

I don't know if this has further implications though so emailed for
your perusal.

Regards,
Daniel Stonier.



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