[LLVMdev] next

Evan Cheng evan.cheng at apple.com
Sun Nov 15 22:49:42 PST 2009


I am pretty sure the .cpp files always explicitly use "llvm" namespace. Look for:
using namespace llvm;

Is that sufficient?

Evan
On Nov 14, 2009, at 3:16 PM, Howard Hinnant wrote:

> In many places there is code that looks like:
> 
>     MBBI = next(MBBI);
> 
> In C++0X there is a std::next that is likely to be in scope when these  
> calls are made. And due to ADL the above call becomes ambiguous:   
> llvm::next or std::next?
> 
> I recommend:
> 
>     MBBI = llvm::next(MBBI);
> 
> -Howard
> 
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev





More information about the llvm-dev mailing list