]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/hana/test/issues/github_297.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / hana / test / issues / github_297.cpp
CommitLineData
b32b8144 1// Copyright Louis Dionne 2013-2017
7c673cae
FG
2// Distributed under the Boost Software License, Version 1.0.
3// (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
4
5#include <boost/hana/integral_constant.hpp>
6#include <boost/hana/map.hpp>
7#include <boost/hana/pair.hpp>
8
9#include <memory>
10namespace hana = boost::hana;
11
12
13int main() {
14 auto map = hana::make_map(
15 hana::make_pair(hana::int_c<0>, 123),
16 hana::make_pair(hana::int_c<1>, 456)
17 );
18
19 std::unique_ptr<decltype(map)> p1{}, p2{};
20 using std::swap;
21 swap(p1, p2);
22}