]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/core/test/ref_implicit_fail3.cpp
2 // Incompatible reference_wrappers must not implicitly convert to each other
4 // Copyright 2020 Peter Dimov
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
11 #include <boost/ref.hpp>
21 void f( boost::reference_wrapper
<X
> )
28 f( boost::ref(y
) ); // should fail