]>
Commit | Line | Data |
---|---|---|
1e59de90 | 1 | // Copyright 2018-2022 Emil Dotchevski and Reverge Studios, Inc. |
20effc67 TL |
2 | |
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) | |
5 | ||
6 | #include <boost/leaf/result.hpp> | |
7 | ||
8 | namespace leaf = boost::leaf; | |
9 | ||
10 | leaf::result<int *> f(); | |
11 | ||
12 | leaf::result<int> g() | |
13 | { | |
14 | return f(); // Types are incompatible | |
15 | } |