mirror of
https://github.com/boostorg/system.git
synced 2025-10-04 19:50:56 +02:00
15 lines
287 B
C++
15 lines
287 B
C++
![]() |
// Copyright 2017, 2021, 2022 Peter Dimov.
|
||
|
// Distributed under the Boost Software License, Version 1.0.
|
||
|
// https://www.boost.org/LICENSE_1_0.txt
|
||
|
|
||
|
#include <boost/system/result.hpp>
|
||
|
|
||
|
using namespace boost::system;
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
int x = 1;
|
||
|
result<int const&> r( x );
|
||
|
r | 2;
|
||
|
}
|