|
Boost :
|
- Next message: Steven Watanabe: "Re: [boost] [swap] How to fix ADL barrier for XL, Intel, GCC, Sun and Como?"
- Previous message: Beman Dawes: "[boost] [1.36 beta] Beta release candidate available"
- In reply to: David Abrahams: "Re: [boost] [swap] How to fix ADL barrier for XL, Intel, GCC, Sun and Como?"
- Next in thread: Steven Watanabe: "Re: [boost] [swap] How to fix ADL barrier for XL, Intel, GCC, Sun and Como?"
- Reply: Steven Watanabe: "Re: [boost] [swap] How to fix ADL barrier for XL, Intel, GCC, Sun and Como?"
- Reply: David Abrahams: "Re: [boost] [swap] How to fix ADL barrier for XL, Intel, GCC, Sun and Como?"
- Reply: Steven Watanabe: "Re: [boost] [swap] How to fix ADL barrier for XL, Intel, GCC, Sun and Como?"
>> Last Friday I added "test_adl_barrier" to test this ADL barrier.
>> Unfortunately it fails on many compilers, including XL (AIX),
>> Intel (version 9 and 10), GCC, Sun and Como:
>> http://www.boost.org/development/tests/trunk/developer/utility-swap_.html
David Abrahams wrote:
> Try replacing the using declaration with a using directive in swap.hpp
> Appears to work for GCC.
Thanks, Dave. Unfortunately for MSVC, most of the tests would be broken,
when doing so! So I guess we would need to do an #if BOOST_WORKAROUND
within swap.hpp, e.g., as follows:
#if BOOST_WORKAROUND( BOOST_MSVC, BOOST_TESTED_AT(1500) )
using swap_adl_barrier::swap;
#else
using namespace swap_adl_barrier;
#endif
Right? I only tested it on MSVC, because I don't have direct access to
an up-to-date GCC compiler at the moment. Shall I just commit it and
see how the regression goes?
Kind regards, Niels
- Next message: Steven Watanabe: "Re: [boost] [swap] How to fix ADL barrier for XL, Intel, GCC, Sun and Como?"
- Previous message: Beman Dawes: "[boost] [1.36 beta] Beta release candidate available"
- In reply to: David Abrahams: "Re: [boost] [swap] How to fix ADL barrier for XL, Intel, GCC, Sun and Como?"
- Next in thread: Steven Watanabe: "Re: [boost] [swap] How to fix ADL barrier for XL, Intel, GCC, Sun and Como?"
- Reply: Steven Watanabe: "Re: [boost] [swap] How to fix ADL barrier for XL, Intel, GCC, Sun and Como?"
- Reply: David Abrahams: "Re: [boost] [swap] How to fix ADL barrier for XL, Intel, GCC, Sun and Como?"
- Reply: Steven Watanabe: "Re: [boost] [swap] How to fix ADL barrier for XL, Intel, GCC, Sun and Como?"
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk