VC10 compile errors

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

VC10 compile errors

Kristoffer Danielsson
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);


Ta med dig Hotmail var du än går! Klicka här!
------------------------------------------------------------------------------
Download Intel&#174; 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
_______________________________________________
luabind-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/luabind-user
Reply | Threaded
Open this post in threaded view
|

Re: VC10 compile errors

Daniel Wallin
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 <[hidden email]>
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&#174; 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
_______________________________________________
luabind-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/luabind-user