]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/core/test/swap/swap_const_wrapper_fail.cpp
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / boost / libs / core / test / swap / swap_const_wrapper_fail.cpp
CommitLineData
92f5a8d4
TL
1// Copyright 2018 Andrzej Krzemieński
2// Copyright 2018 Peter Dimov
3// Distributed under the Boost Software License, Version 1.0.
4
5#include <boost/core/swap.hpp>
6
7namespace boost
8{
9
10template<class T> struct Wrapper
11{
12 T value;
13};
14
15template<class T> inline void swap( Wrapper<T> & w, Wrapper<T> & v )
16{
17 boost::swap( w, v );
18}
19
20} // namespace boost
21
22int main()
23{
24 boost::Wrapper<int> const w = { 2 };
25 boost::Wrapper<int> const v = { 3 };
26
27 swap( w, v );
28}