]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/outcome/test/compile-fail/result-int-int-2.cpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / libs / outcome / test / compile-fail / result-int-int-2.cpp
CommitLineData
92f5a8d4
TL
1/* clang-format off
2(use of deleted function|call to deleted constructor|attempting to reference a deleted function)
3clang-format on
4
5
6Licensed under the Apache License, Version 2.0 (the "License");
7you may not use this file except in compliance with the License.
8You may obtain a copy of the License in the accompanying file
9Licence.txt or at
10
11http://www.apache.org/licenses/LICENSE-2.0
12
13Unless required by applicable law or agreed to in writing, software
14distributed under the License is distributed on an "AS IS" BASIS,
15WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16See the License for the specific language governing permissions and
17limitations under the License.
18
19
20Distributed under the Boost Software License, Version 1.0.
21(See accompanying file Licence.txt or copy at
22http://www.boost.org/LICENSE_1_0.txt)
23*/
24
25#include "../../include/boost/outcome/result.hpp"
26
27int main()
28{
29 using namespace BOOST_OUTCOME_V2_NAMESPACE;
30 // Must not be possible to initialise a result with same R and S types
31 result<int, int> m(in_place_type<int>);
20effc67 32 (void) m;
92f5a8d4
TL
33 return 0;
34}