Boost logo

Boost :

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


David Abrahams <dave_at_[hidden]> writes:

> 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.

OK, silly me: it looks like we *do* set that macro for intel-win32.

Since the latest version of that compiler is version 8, why are we
writing:

#if (BOOST_INTEL_CXX_VERSION <= 800) || !defined(BOOST_STRICT_CONFIG)

instead of

#if BOOST_WORKAROUND(BOOST_INTEL_CXX_VERSION, BOOST_TESTED_AT(800))

??

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

I still wanna know.

Thanks,

-- 
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