]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/config/test/boost_no_adl_barrier.ipp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / config / test / boost_no_adl_barrier.ipp
1 // (C) Copyright John Maddock 2008.
2 // Use, modification and distribution are subject to the
3 // Boost Software License, Version 1.0. (See accompanying file
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6 // See http://www.boost.org/libs/config for most recent version.
7
8 // MACRO: BOOST_NO_ADL_BARRIER
9 // TITLE: Working ADL barriers.
10 // DESCRIPTION: If the compiler correctly handles ADL.
11
12 namespace boost_no_adl_barrier{
13
14 namespace xxx {
15 namespace nested {
16 struct aaa {};
17 }
18 void begin(nested::aaa) {}
19 }
20
21 namespace nnn {
22 void begin(xxx::nested::aaa) {}
23 }
24
25 int test()
26 {
27 using namespace nnn;
28 xxx::nested::aaa a;
29 begin(a); // ambiguous error in msvc-9.0
30
31 return 0;
32 }
33
34 }
35
36
37
38