2009-08-17 64 views
0

我必須更新應用程序才能使用升壓1.34而不是1.37,這給我帶來了很多麻煩。從升壓1.37降級到1.34

一個目前最大的問題是,我不知道加速線程非常好。隨着1.34,我得到...

error C2039: 'this_thread' : is not a member of 'boost'

...的代碼

boost::this_thread::sleep(boost::posix_time::milliseconds(500));

的boost ::了posix_time是不是在1.34任。

有誰知道equivilant Boost 1.34函數調用?

+0

有可能(我不知道),這些功能根本沒有在1.34存在... – 2009-08-17 14:18:51

+1

的boost ::了posix_time似乎存在(HTTP://www.boost。 org/doc/libs/1_34_1/doc/html/date_time/posix_time.html#date_time.posix_time) – HerdplattenToni 2009-08-17 14:44:33

+0

所需的頭文件已更改。我找到了,謝謝。 – Justin 2009-08-17 14:47:25

回答

1

的boost ::螺紋::睡眠(升壓::了posix_time ::的ptime(...));

+0

更改'this_thread'爲'thread'幫助,謝謝。但是,沒有定義'posix_time'。任何想法? – Justin 2009-08-17 14:39:36