forked from boostorg/system
Add operator|( result, value )
This commit is contained in:
1 parent
fa3331412d
commit
d38e54d4c3
6 files changed
+250
No files matched your search
@@ -0,0 +1,14 @@
|
||||
// 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;
|
||||
}
|
||||
Reference in new issue
Block a user