[LLVMdev] name collision - llvm::tie and boost::tie
ghost at cs.msu.su
Fri Sep 23 02:35:40 CDT 2005
On Friday 23 September 2005 11:07, Andreas Fredriksson wrote:
> On 9/23/05, Vladimir Prus <ghost at cs.msu.su> wrote:
> > In fact, I believe that
> > using namespace llvm;
> > using namespace boost;
> > using boost::tie;
> > should resove the problem witout needed to explicitly nominate all boost
> > names you use. Except that this does not work on global scope, but only
> > in namespace:
> Also, it might be an idea to exploit Koenig lookup if either `tie'
> function is a free function and uses types from its own namespace.
This is getting off-topic for this list, but ADL (aka. Koenig lookup) won't
help with "tie", because 'tie' is mostly called on std::pair.
More information about the LLVMdev