2 // (C) Copyright Beman Dawes 2008
4 // Use, modification and distribution are subject to the
5 // Boost Software License, Version 1.0. (See accompanying file
6 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 // See http://www.boost.org/libs/config for more information.
10 // MACRO: BOOST_NO_CXX11_DECLTYPE
11 // TITLE: C++0x decltype unavailable
12 // DESCRIPTION: The compiler does not support C++0x decltype
14 namespace boost_no_cxx11_decltype {
16 void quiet_warning(int){}
23 test_class get_test_class()
32 // Strangely VC-10 deduces the return type of F
33 // to be "test_class&". Remove the constructor
34 // from test_class and then decltype does work OK!!
36 typedef decltype(f()) res;
45 decltype(get_test_class()) k;
47 // Although the VC++ decltype is buggy, we none the less enable support,
48 // so don't test the bugs for now!