小编use*_*305的帖子

Boost :: this_thread :: get_id()没有字符串操作

我需要将boost :: thread :: id转换为变量,但这个变量不是字符串,也不允许字符串操作.那可能吗?

也许是这样的

char *tid = (casting something) boost::this_thread::get_id()

这是unix系统上的c ++.避免使用字符串操作的原因是因为它降低了整个应用程序的速度.谢谢你.

c++ unix multithreading boost

2
推荐指数
1
解决办法
7246
查看次数

标签 统计

boost ×1

c++ ×1

multithreading ×1

unix ×1