本文整理汇总了C++中atom::to_string方法的典型用法代码示例。如果您正苦于以下问题:C++ atom::to_string方法的具体用法?C++ atom::to_string怎么用?C++ atom::to_string使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类atom
的用法示例。
在下文中一共展示了atom::to_string方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: timer_reconnect
void timer_reconnect(const boost::system::error_code& ec) {
if (ec == boost::asio::error::operation_aborted)
return; // timer reset
if (verbose() >= VERBOSE_TRACE)
std::cerr << "basic_otp_connection::timer_reconnect: " << ec.message() << std::endl;
m_transport = connection_type::create(
m_io_service, this, m_node->nodename().to_string(),
m_remote_nodename.to_string(), m_cookie, m_alloc);
}
示例2: Alloc
basic_otp_connection(
connect_completion_handler h,
boost::asio::io_service& a_svc,
basic_otp_node<Alloc,Mutex>* a_node, const atom& a_remote_node,
const std::string& a_cookie, int a_reconnect_secs = 0,
const Alloc& a_alloc = Alloc())
: m_io_service(a_svc)
, m_node(a_node)
, m_remote_nodename(a_remote_node)
, m_cookie(a_cookie)
, m_alloc(a_alloc)
, m_connected(false)
, m_reconnect_timer(m_io_service)
, m_reconnect_secs(a_reconnect_secs)
, m_abort(false)
{
BOOST_ASSERT(a_node != NULL);
m_on_connect_status = h;
m_transport = connection_type::create(
m_io_service, this, a_node->nodename().to_string(),
a_remote_node.to_string(), a_cookie, a_alloc);
}
示例3: str
const string_t& str() const { return m_name.to_string(); }