]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/leaf/test/_compile-fail-arg_catch_2.cpp
1 // Copyright 2018-2022 Emil Dotchevski and Reverge Studios, Inc.
3 // Distributed under the Boost Software License, Version 1.0. (See accompanying
4 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 #include <boost/leaf/handle_errors.hpp>
7 #include <boost/leaf/pred.hpp>
8 #include <boost/leaf/result.hpp>
10 namespace leaf
= boost::leaf
;
14 return leaf::try_handle_all(
15 []() -> leaf::result
<int>
19 []( leaf::catch_
<int> & ) // leaf::catch_<> must be taken by value