Registered Member
|
Hi,
I'm having trouble using std::vector::insert with Eigen. Here's the code that's giving me trouble:
The error is:
So, I don't know is Eigen\StdVector defining its own version insert? I've tried using const_iterator to match that template. No luck. Any help? Thanks. |
Moderator
|
indeed, in Eigen/src/StlSupport/StdVector.h we have:
and I don't really understand why we had to add these overloads of insert(). Could you try to comment them, and see how it works for you? |
Registered Member
|
I've commented out the insert code, as well as push_back() (just one line above insert code) in Eigen/src/StlSupport/StdVector.h. It appears to work. Here's a little test code:
By the way, the original problem only occurs in Win32 builds, Visual Studio. X64 build was just fine for some reason. I'll let you know if this causes any problems, but I hope this change can make it into the trunk, because I really don't like keeping patches of libraries. Thanks. |
Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar