thread.hpp:117: error: expression cannot be used as a function f();

使用boost库,线程的命名不能和函数命名同名  :boost::thread initStoreServer(&initStoreServer);          不然会报上面的错误  .

你可能感兴趣的:(boost库的使用,boost,tread,f();)