从VS2008迁移到VS2010[2][3rd Parties]
>> TBB (Threading Building Blocks)
Web site: http://threadingbuildingblocks.org/
起初下载了tbb40_278oss_src.tgz,企图自己Build一把,不料在使用TBB的时候,总是有一个无法找到tbb_debug.lib的编译错误,所以干脆下载了tbb40_278oss_win.zip用用算了
# error C2664: 'customized_allocator<T>::construct' : cannot convert parameter 2 from 'const char [9]' to 'char *const &'
错误出现的地方:
CUSTOMIZDED_STRING_SET stringSet; stringSet.insert("MyName");
修改:
From:
typedef customized_set<char *> CUSTOMIZDED_STRING_SET;
To:
typedef customized_set<const char *> CUSTOMIZDED_STRING_SET;