On 3 Feb 2000, Lars Gullik Bjønnes wrote:
> Jules Bean <[EMAIL PROTECTED]> writes:
>
> | Surely it's perfectly acceptable to have
> |
> | using std::vector;
> |
> | at the top of a file (in filescope).
>
> Not if you use that vector in only one file.
Did you mean '...in only one function'?
I'm talking about having a simple using declaration for types referenced
in this file. I can't see that that's unacceptable.
There are lots of actions you take in C++ which bring things into your
namespace. Every header file you include typically puts hundreds of
symbols into your namespace, so I can't see why you shouldn't put a simple
declaration which imports 1, or 2, or 3, symbols..
But, it's you project ;-) You set the coding rules, I'll follow them if I
submit a patch...
Jules
/----------------+-------------------------------+---------------------\
| Jelibean aka | [EMAIL PROTECTED] | 6 Evelyn Rd |
| Jules aka | [EMAIL PROTECTED] | Richmond, Surrey |
| Julian Bean | [EMAIL PROTECTED] | TW9 2TF *UK* |
+----------------+-------------------------------+---------------------+
| War doesn't demonstrate who's right... just who's left. |
| When privacy is outlawed... only the outlaws have privacy. |
\----------------------------------------------------------------------/