• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
13namespace boost_no_cxx11_inline_namespaces {
14
15inline namespace my_ns {
16
17int data = 0;
18
19} // namespace my_ns
20
21int test()
22{
23    data = 1;
24    if (&data == &my_ns::data)
25        return 0;
26    else
27        return 1;
28}
29
30}
31