mirror of
https://github.com/boostorg/leaf.git
synced 2026-01-25 06:12:27 +00:00
18 lines
465 B
C++
18 lines
465 B
C++
//Copyright (c) 2018 Emil Dotchevski
|
|
//Copyright (c) 2018 Second Spectrum, Inc.
|
|
|
|
//Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
#include <boost/leaf/error.hpp>
|
|
|
|
namespace leaf = boost::leaf;
|
|
|
|
struct no_member_value { };
|
|
|
|
leaf::error f()
|
|
{
|
|
//Note: the line below should trigger a compile error (via static_assert).
|
|
return leaf::error( no_member_value{ } );
|
|
}
|