forked from boostorg/system
Update test/result_copy_construct
This commit is contained in:
1 parent
50f84f16dc
commit
2b6a708070
2 files changed
+46
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user