Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


OK, so compiling with VC2010 brings in some new fun errors: "cannot convert from 'int' to 'foo *'" 
. Apparently VC2010 is more C++0x compliant or something than VC2008 was, which I guess is good, we 
all love standards, right? Isn't that one of the things gcc advocates have been hitting MSVC with, 
"you don't even have C99 support"?

Apparently the Correct Fix here would be to start using the "nullptr" keyword when initialising 
pointers (at lest in some contexts) instead of literal 0, but is nullptr supported in the gcc 
versions used on other platforms? So is it better to just use 0 cast to the appropriate pointer 
type instead?

--tml


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.