Paul Licameli
2017-04-03 16:13:26 UTC
I see in David Bailes' recent changes that there are uses of std::find_if
but the std:: qualifier is left out and still it compiles.
I don't see where there was
using namespace std;
to make that possible.
I don't like using namespace directives at file scope -- they defeat the
point of namespaces. I prefer to write std::, unless I repeat it very
often in one expression, and then I might add using namespace std; in a
small local scope.
And by the way, I might write those with std::lower_bound instead, but not
that the log time matters very much.
PRL
but the std:: qualifier is left out and still it compiles.
I don't see where there was
using namespace std;
to make that possible.
I don't like using namespace directives at file scope -- they defeat the
point of namespaces. I prefer to write std::, unless I repeat it very
often in one expression, and then I might add using namespace std; in a
small local scope.
And by the way, I might write those with std::lower_bound instead, but not
that the log time matters very much.
PRL