Re: VC10 compile errors
Daniel Wallin <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Mar 09, 2010 at 09:19:26PM +0100, Kristoffer Danielsson wrote: > > luabind 0.9 + VC 2010 RC > > object_rep.hpp(58): C2440. I believe a static_cast is needed for the void*: > > return std::pair<void*, int>(static_cast<void*>(0), -1); > > instance_holder.hpp(101): C2440. Same... > > return std::pair<void*, int>(static_cast<void*>(0), 0); This was fixed a while back on the 0.9 branch: commit b158edf97f7cf9318838d1928ebf95a1e03d52fb Author: Thomas Nelson <[email protected]> Date: Wed Feb 17 00:38:42 2010 +0100 Workaround C++0x pair<> constructor with null pointer issue. This is present in both GCC4.4 and MSVC10. See: http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#811 -- Daniel Wallin BoostPro Computing http://www.boostpro.com ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev