1 // 2 // Rvalues should not implicitly convert to a reference_wrapper 3 // 4 // Copyright 2014 Peter Dimov 5 // 6 // Distributed under the Boost Software License, Version 1.0. 7 // See accompanying file LICENSE_1_0.txt or copy at 8 // http://www.boost.org/LICENSE_1_0.txt 9 // 10 11 #include <boost/ref.hpp> 12 f(boost::reference_wrapper<int>)13void f( boost::reference_wrapper< int > ) 14 { 15 } 16 main()17int main() 18 { 19 f( 1 ); // should fail 20 } 21