]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | // Copyright (C) 2009 Andrey Semashev |
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_CXX11_AUTO_MULTIDECLARATIONS | |
9 | // TITLE: C++0x auto multideclarators unavailable | |
10 | // DESCRIPTION: The compiler does not support C++0x declarations of series of variables with automatically deduced type | |
11 | ||
12 | namespace boost_no_cxx11_auto_multideclarations { | |
13 | ||
14 | void check_f(int&, int*&) | |
15 | { | |
16 | } | |
17 | ||
18 | int test() | |
19 | { | |
20 | auto x = 10, *y = &x; | |
21 | check_f(x, y); | |
22 | return 0; | |
23 | } | |
24 | ||
25 | } |