[LLVMdev] next

Howard Hinnant hhinnant at apple.com
Sat Nov 14 15:16:23 PST 2009


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




More information about the llvm-dev mailing list