|
Boost : |
From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2005-03-07 02:17:56
Hi,
Maybe it's something that I missed, but why optional doesn't define output
operator something like this:
template<typename T>
inline std::ostream&
operator<<( std::ostream& ostr, optional<T> const& v )
{
if( v )
ostr << *v;
return ostr;
}
Gennadiy
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk