Re: Luabind and MSVC2010
Chris Byrne <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Jun 18, 2010 at 1:55 AM, Emmanuel Barroga <[email protected]> wrote: > I receive the following compile error: > C:\Program Files\Microsoft Visual Studio 10.0\VC\INCLUDE\utility(163) : > error C2 > 440: 'initializing' : cannot convert from 'int' to 'void *' > What do I need to do to get Luabind compiled with VS 2010? You need to explicitly cast arguments of 0 to a pointer type (void*) to remove the ambiguity with the std::pair constructor. Appropriate change set can be found in the github repository: http://github.com/luabind/luabind/commit/b158edf97f7cf9318838d1928ebf95a1e03d52fb - CB ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first