Re: Compile issue on Linux x86_64

Łukasz Wołowiec <[email protected]>
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <19F3E61F0A28414A84A43B0F370A2ABC0D6F1455F9@arcaWay.arcadiasoft.local>
> I believe this is an open issue on the C++ standard library:
>
>  http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#811
>
> A workaround would be to explicitly cast the null ptr to void*:

I encountered this problem when compiling luabind on VC 2010 as well. As far, as I know, this is not 'open' issue in the new C++0x standard anymore. It was solved by using the new 'nullptr' keyword.

So, instead of:
	return std::pair<void*, int>((void*)0, -1);

you can express it the more 'legal' way:
	return std::pair<void*, int>(nullptr, -1);

I tried it with VC2010 and worked fine.

--
Lukasz

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.