[webkit-dev] Using namespace std

James Robinson jamesr at google.com
Wed May 16 12:47:36 PDT 2012


On Wed, May 16, 2012 at 12:04 PM, Anders Carlsson <andersca at apple.com>wrote:

>
> On May 16, 2012, at 9:31 AM, Darin Adler <darin at apple.com> wrote:
>
> > On May 16, 2012, at 9:20 AM, Allan Sandfeld Jensen wrote:
> >
> >> there is another conflict which is entirely our own fault. It is
> between WTF::bind and the new std::bind from C++11
> >
> > We should find a good solution for this. I’d suggest talking with Anders
> Carlsson about it.
>
> I've run into this and had to use the fully qualified WTF::bind in those
> cases.
>
> FWIW, I don't think we really need using directives for the std namespace
> - the fully qualified name is short enough and I like the additional
> clarity that we're calling something in the standard library.
>

I would be strongly in favor of using fully qualified names for std classes
(std::bind instead of just bind).  This isn't a problem in other large
codebases, even ones that use far more types from std:: (like containers)
and that have column limits.

- James


> - Anders
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20120516/e36d756f/attachment.html>


More information about the webkit-dev mailing list