A01011010 / vdrift-ogre

Automatically exported from code.google.com/p/vdrift-ogre
0 stars 0 forks source link

VS2008 compile error #135

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I Use vs2008 compile the code ...has some problem...error C2719:
'_Val': formal parameter with __declspec(align('16')) won't be aligned..
i think in g++ compile it's ok....

hao to solve the problem
thanks

Original issue reported on code.google.com by xiaotiek...@163.com on 31 Jan 2012 at 1:07

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
This is known (VS2008 only I think). I need to put it into wiki.

Go to file list (most probably "c:\Program Files\Microsoft Visual Studio 
9.0\VC\include\list")
and change the line 609 from
    void resize(size_type _Newsize, _Ty _Val)
to
    void resize(size_type _Newsize, const _Ty& _Val)
and save, build.

Original comment by Cry...@gmail.com on 31 Jan 2012 at 1:38

GoogleCodeExporter commented 9 years ago

Original comment by Cry...@gmail.com on 31 Jan 2012 at 5:18

GoogleCodeExporter commented 9 years ago
haha...it's ok,thanks.....but chang the std::list file i think is not very 
good...

Original comment by xiaotiek...@163.com on 1 Feb 2012 at 4:35