On 10/31/13 3:05 PM, Monica Chew wrote:
Can we agree on using the using directive instead of typedefs when it comes to 
namespaces? I think it's less likely to lead to confusing compile errors than 
typedefs.

class nsSVGUtils
{
   using mozilla::gfx::FillRule;

I believe this is not valid C++, sadly.  g++ gives me:

  error: using-declaration for non-member at class scope

whereas clang++ gives me:

  error: using declaration in class refers into 'mozilla::gfx::', which
         is not a class

Yes, that's pretty sucky. But as a result the typedef option is the only option available here. :(

-Boris
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to