Update test/result_copy_construct

This commit is contained in:
Peter Dimov committed 2021-09-17 19:25:20 +03:00
1 parent 50f84f16dc
commit 2b6a708070
2 files changed
+46

No files matched your search

+14
View File
@@ -487,6 +487,20 @@ public:
}
};
template<class Ch, class Tr, class E> std::basic_ostream<Ch, Tr>& operator<<( std::basic_ostream<Ch, Tr>& os, result<void, E> const & r )
{
if( r.has_value() )
{
os << "value:void";
}
else
{
os << "error:" << r.error();
}
return os;
}
} // namespace system
} // namespace boost