|
Boost : |
From: Paul A Bristow (boost_at_[hidden])
Date: 2004-02-20 13:04:59
| -----Original Message-----
| From: boost-bounces_at_[hidden]
| [mailto:boost-bounces_at_[hidden]] On Behalf Of Darren Cook
| Sent: 19 February 2004 23:49
| To: Boost mailing list
| Subject: Re: [boost] Re: algorithms namespace
|
| I'm okay with writing std::cout or std::for_each. It only
| adds 5 chars which
| isn't enough to disturb me. If the standard library had instead been
| namespace "standard" I'd probably always write "using
| namespace standard" at
| the top of all my programs.
What is your objection to writing
#include <iostream>
using std::cout;
using std::for_each; // etc
either locally to a block or procedure, or with wider scope?
IMHO this also helpfully documents for the user where things are coming
from, avoids the clutter from full file specifications, and avoids the
pitfalls with name clashes and selection surprises that 'using namespace
std & boost etc' creates.
If things move from boost:: to std::, say, I'd prefer to see the changes
documented as explicitly as possible.
Paul
Paul A Bristow
Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB
+44 1539 561830 +44 7714 330204
mailto: pbristow_at_[hidden]
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk