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