[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: [eigen] StdVector
- From: Daniel Stonier <d.stonier@xxxxxxxxx>
- Date: Thu, 27 Aug 2009 17:47:18 +0900
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=XpVVA0M7xaCWDxxiH559vA8gAIuJslFp+5w5zJjV0fA=; b=HuMFDWeO3s/IAK1tYngxyVy6koPH3oexXbUvmMpR0Pf1eJWIpLm2FBYqnfHrLgTSek zNqeM9yEZGyKHm3etAdRfHYq3dT1rtcv5yp8b1Q2lUHNjGLtH4l3m0RxB5pK9leadRoN 0jUyo+BzG7jRzXIeuOORcI5LUIKItAYIb5LLw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=SqwLFccf33v7rumVBx3VrrOq/bnDmFQ6iyyENm5jTFINeOs+O8/WAFPsvaY0yX09i4 ve7Fgz4HNbiInVb3ZFm9hyAg56cbGkK5R/vY/km0ZiPBthm62fQigMSOXstU3vCDXWgm nNNMY1Vht40pcv6vYWmMPc60gk65wVbuzcPN8=
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.