[LLVMdev] next

John McCall rjmccall at apple.com
Mon Nov 16 00:21:11 PST 2009


Evan Cheng wrote:
> I am pretty sure the .cpp files always explicitly use "llvm" namespace. Look for:
> using namespace llvm;
>
> Is that sufficient?
>   

No;  once it's visible through ADL (because ilist<>::iterator extends 
std::iterator) there's no hiding or precedence mechanism we can 
exploit.  On the other hand, AFAICT std::next is interchangeable with 
llvm::next;  we should be able to replace llvm::next with 'using 
std::next' in C++0x builds.

John.



More information about the llvm-dev mailing list