Add operator|( result, value )

This commit is contained in:
Peter Dimov committed 2023-10-29 01:30:01 +03:00
1 parent fa3331412d
commit d38e54d4c3
6 files changed
+250

No files matched your search

+14
View File
@@ -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;
}