static lazy_ostream& instance() { return inst; }
+ #if !defined(BOOST_EMBTC)
+
friend std::ostream& operator<<( std::ostream& ostr, lazy_ostream const& o ) { return o( ostr ); }
+ #else
+
+ friend std::ostream& operator<<( std::ostream& ostr, lazy_ostream const& o );
+
+ #endif
+
// access method
bool empty() const { return m_empty; }
static lazy_ostream inst;
};
+#if defined(BOOST_EMBTC)
+
+ inline std::ostream& operator<<( std::ostream& ostr, lazy_ostream const& o ) { return o( ostr ); }
+
+#endif
+
//____________________________________________________________________________//
template<typename PrevType, typename T, typename StorageT=T const&>
{
}
- virtual std::ostream& operator()( std::ostream& ostr ) const
+ std::ostream& operator()( std::ostream& ostr ) const BOOST_OVERRIDE
{
return m_prev(ostr) << m_value;
}