]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | // (C) Copyright Beman Dawes 2008 |
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_DELETED_FUNCTIONS | |
10 | // TITLE: C++0x =delete functions unavailable | |
11 | // DESCRIPTION: The compiler does not support C++0x =delete functions | |
12 | ||
13 | #if defined(__GNUC__) && !defined(__GXX_EXPERIMENTAL_CXX0X__) && !defined(BOOST_INTEL_STDCXX0X) | |
14 | # error Deleted functions are not supported in non-C++0x mode | |
15 | #endif | |
16 | ||
17 | namespace boost_no_cxx11_deleted_functions { | |
18 | ||
19 | struct foo { | |
20 | foo() = delete; | |
21 | }; | |
22 | ||
23 | int test() | |
24 | { | |
25 | return 0; | |
26 | } | |
27 | ||
28 | } |