| 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/core/ref.hpp> |
| 12 | |
| 13 | void f( boost::reference_wrapper< int const > ) |
| 14 | { |
| 15 | } |
| 16 | |
| 17 | int main() |
| 18 | { |
| 19 | f( 1 ); // should fail |
| 20 | } |
| 21 |
