问题的标题很简单。这里是代码: class xxx : public Scheduled
{
long int _wait_time;
boost::function< void() > _cb;
mutable boost::mutex _mutex;
public:
xxx(boost::function< void() > callback, u
使用Boost绑定使用Boost独特的指针和Boost函数我正在接收链接器错误,具体取决于我如何将回调传递给接收函数。 如果我通过绑定包含boost唯一指针参数的回调来创建Boost函数成员变量,并将其传递给接收函数,则当调用回调时尝试使用唯一指针时会导致链接器错误。 如果我在调用接收函数时执行绑定,我不会收到链接器错误,并且代码的行为与预期相同。 示例代码: class test
{
pub