7#include <boost/optional.hpp>
17template <
class CharType,
class CharTrait,
class OptionalValueType>
18inline std::basic_ostream<CharType, CharTrait> &
operator<<(std::basic_ostream<CharType, CharTrait> &os,
19 boost::optional<OptionalValueType>
const &
value) {
20 return (os <<
"boost::optional @ " <<
reinterpret_cast<const void *
>(&
value));
double value
The value of the point.
std::basic_ostream< CharType, CharTrait > & operator<<(std::basic_ostream< CharType, CharTrait > &os, boost::optional< OptionalValueType > const &value)
Simple prints the address of the optional object.