Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-04-12 07:06:20


Check it out, I can't get the following program to compile, even with
-Qoption,c,--arg_dep_lookup:

namespace ns1
{
  class X{};
  int swap(X&, X&);
}

namespace ns2
{
  template <class T>
  void swap(T&, T&);
}

int main()
{
    ns1::X x;
    using ns2::swap;
    int y = swap(x,x);
}

Shouldn't we be setting
BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL for this compiler?
It's actually a different bug in some details, I realize, but the
macro does say the right thing.

Also, where is the test for that macro? I don't see any in libs/config/test.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk