1// Copyright (C) 2007 Douglas Gregor 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_RVALUE_REFERENCES 9// TITLE: C++0x rvalue references unavailable 10// DESCRIPTION: The compiler does not support C++0x rvalue references 11 12namespace boost_no_cxx11_rvalue_references { 13 14void g(int&) {} 15 16template<typename F, typename T> 17void forward(F f, T&& t) { f(static_cast<T&&>(t)); } 18 19int test() 20{ 21 int x; 22 forward(g, x); 23 return 0; 24} 25 26} 27