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? -- Tzu-Chien Chiu, 3D Graphics Hardware Architect <URL:http://www.csie.nctu.edu.tw/~jwchiu>
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
On 9/22/05, Tzu-Chien Chiu <tzuchien.chiu at gmail.com> 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? >Couldn't you state the explicit namespaces. So not using "using namespace llvm" and instead prefix all calls with "llvm::"? -bw
On 22/09/05, Bill Wendling <isanbard at gmail.com> wrote:> Couldn't you state the explicit namespaces. So not using "using > namespace llvm" and instead prefix all calls with "llvm::"?The header files in boost do not use fully-qualified tie(). I probably should not modify them. But my .cpp file #include them. I hope I could "using namespace" boost and llvm in .cpp file, because it's tedious to use fully-qualified identifiers in boost and llvm namespace. -- Tzu-Chien Chiu, 3D Graphics Hardware Architect <URL:http://www.csie.nctu.edu.tw/~jwchiu>
Possibly Parallel Threads
- [LLVMdev] name collision - llvm::tie and boost::tie
- [LLVMdev] name collision - llvm::tie and boost::tie
- [LLVMdev] name collision - llvm::tie and boost::tie
- [LLVMdev] name collision - llvm::tie and boost::tie
- [LLVMdev] name collision - llvm::tie and boost::tie