[bind10-dev] nullptr

Michal 'vorner' Vaner michal.vaner at nic.cz
Fri Aug 31 07:24:35 UTC 2012


Hello

On Thu, Aug 30, 2012 at 08:50:50PM +0000, Francis Dupont wrote:
> in the last C++ specs the infamous NULL macro was replaced by
> the nullptr keyword. IMHO it is far better but I don't know
> if it is supported by all compilers even it is by g++ and MSVC.
> Should we plan a nullptr campaign?

While I'd really enjoy switching to the new standard, because there are many
really nice features, I think picking one little (and unimportant, compared to
the rest) feature feels very wrong to me. The ISO C++ our code tries to adhere
to has no support for nullptr AFAIK.

So, effectively, it would mandate switching to the new standard to have the
support. How new version of g++ knows the new standard? What about clang? What
about sunstidio? What about compilers we don't officially support because we
don't know they exist, but will be used to get Bind10 running on some embedded
hardware in future, or new architecture?

I think nullptr really is too small motivation to give up a quite few compilers
and go through the mess of switching the standard. If we were to consider
switching, I'd say it would be for some feature like closures. But I think we
are somewhat conservative in features mandated from the system we want to run
on, using headers-only boost and stuff like that.

With regards

-- 
The difficult we do today; the impossible takes a little longer.

Michal 'vorner' Vaner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <https://lists.isc.org/pipermail/bind10-dev/attachments/20120831/38ade483/attachment.bin>


More information about the bind10-dev mailing list