Boost logo

Boost :

Subject: Re: [boost] std::map::find() wrapper
From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2011-05-05 09:07:17


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday, May 05, 2011, Robert Jones wrote:
> On Thu, May 5, 2011 at 11:52 AM, Thorsten Ottosen <
>
> > is quite easy to read IMO. No need for another overload. We might as
> > well take advantage of the fact that pointers are "optional" by
> > default. There is no need to complicate things.
>
> Surely this could be used as an argument for pointers instead of
> optionals for every use of optional.

I see it as only an argument for usage of pointers over optional references,
since optionals copy their template argument type by value and are thus
generally quite un-pointer like. Personally, I don't think I've ever
bothered using an optional reference (but I have made use of optionals).

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk3CoQUACgkQ5vihyNWuA4W2vACffSImLEj4SPOn7wYJOUPK5ktm
vvAAoKZ0IQ8mEcjLA9EkeoPaVnbxCt9C
=CV8p
-----END PGP SIGNATURE-----


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk