[LLVMdev] name collision - llvm::tie and boost::tie

Misha Brukman brukman at cs.uiuc.edu
Thu Sep 22 07:57:16 PDT 2005

On Thu, Sep 22, 2005 at 10:34:57PM +0800, Tzu-Chien Chiu wrote:
> The BGL (Boost Graph Library) defines tie(), which is exactly what the
> tie() defined in STLExtras.h.
> The header files of GBL use boost::tie(), and other boost libraries
> use boost::tie() too.
> How to resolve the ambiguity for compiler?

I'm sorry, I'm not quite following: how does "llvm::tie" clash with the
name "boost::tie"?  If there is code that includes both LLVM and Boost
header files, they should be using fully-qualified namespaces, and not
"using namespace llvm; using namespace boost;" .

Misha Brukman :: http://misha.brukman.net :: http://llvm.cs.uiuc.edu

More information about the llvm-dev mailing list