This forum has been archived. All content is frozen. Please use KDE Discuss instead.

std::deque problem with MSVC9

Tags: None
(comma "," separated)
kfriddile
Registered Member
Posts
23
Karma
0

std::deque problem with MSVC9

Mon Mar 21, 2011 8:45 pm
Attempting to compile this with MSVC9 gives this compilation error. Using std::vector instead of std::deque works just fine. This is with the released version of Eigen 3.
jitseniesen
Registered Member
Posts
204
Karma
2

Re: std::deque problem with MSVC9

Mon Mar 21, 2011 9:53 pm
This is a known issue that we are struggling with. It's specific to MS Visual Studio 2008 and std::deque. It is in our bug tracker as bug 83; see http://eigen.tuxfamily.org/bz/show_bug.cgi?id=83 . Any assistance with this bug would be very welcome indeed.
FMD
Registered Member
Posts
25
Karma
0

Re: std::deque problem with MSVC9

Sat Jul 13, 2013 12:04 am
Yesterday the Bug was closed because the lack of possiblities on eigens side.

For the sake of information:
a)
I tested MSVC10 and do NOT see any problem there (http://manao.inria.fr/CDash/viewBuildEr ... ildid=7344).
I tested also MSVC9 and see the problem (http://manao.inria.fr/CDash/buildSummar ... ildid=7346).

b)
But then I have done something "totally crazy" and pached MSVC9 deque source as follow (Line 715):
Code: Select all
-void resize(size_type _Newsize, _Ty _Val)
+void resize(size_type _Newsize, _Ty& _Val)

and re-perform the full set of tests for MSVC9 (vc90sp1-sse2-32bit).
Tataa! Problem gone (http://manao.inria.fr/CDash/buildSummar ... ildid=7356).

P.S.:
To my relief, the following signature is used by MSVC10 std::deque
Code: Select all
void resize(size_type _Newsize, const _Ty& _Val)


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]