]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/utility/base_from_member_ref_test.cpp
2 // Test that a base_from_member<T&> can be properly constructed
4 // Copyright 2014 Agustin Berge
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/utility/base_from_member.hpp>
13 #include <boost/detail/lightweight_test.hpp>
15 struct foo
: boost::base_from_member
<int&>
17 explicit foo(int& ref
) : boost::base_from_member
<int&>(ref
)
19 BOOST_TEST(&member
== &ref
);
28 return boost::report_errors();