Пример #1
0
    template<class msg_type> void operator()(msg_type & str) const {
        bool is_needed = true;
        if ( ! convert::get_underlying_string(str).empty())
            if ( *(convert::get_underlying_string(str).rbegin()) == '\n')
                is_needed = false;

        if ( is_needed)
            convert::write( HPX_LOG_STR("\n"), str );
    }
Пример #2
0
 // when we enter here, we know the logger is enabled
 hold_string_type gathered_info() {
     hold_string_type str = m_out.str();
     m_gather.do_gather(str);
     return HPX_LOG_STR("start of ") + str;
 }
Пример #3
0
 template<class msg_type> void operator()(msg_type & str) const {
     convert::write( HPX_LOG_STR("\n"), str );
 }
Пример #4
0
 stream_type & get() {
     stream_type & val = *(m_cache.get());
     val.str( HPX_LOG_STR("") );
     return val;
 }