]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/config/test/boost_no_cxx11_inline_namespaces.ipp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / config / test / boost_no_cxx11_inline_namespaces.ipp
1 // (C) Copyright Andrey Semashev 2013
2
3 // Use, modification and distribution are subject to the
4 // Boost Software License, Version 1.0. (See accompanying file
5 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6
7 // See http://www.boost.org/libs/config for more information.
8
9 // MACRO: BOOST_NO_CXX11_INLINE_NAMESPACES
10 // TITLE: C++11 inline namespaces.
11 // DESCRIPTION: The compiler does not support C++11 inline namespaces.
12
13 namespace boost_no_cxx11_inline_namespaces {
14
15 inline namespace my_ns {
16
17 int data = 0;
18
19 } // namespace my_ns
20
21 int test()
22 {
23 data = 1;
24 if (&data == &my_ns::data)
25 return 0;
26 else
27 return 1;
28 }
29
30 }