【发布时间】:2013-05-09 19:42:55
【问题描述】:
在我的代码中,我想使用boost::hash<pair<int, int>>,为此我需要:
#include <boost/functional/hash.hpp>
我使用cmake 来构建我的项目。我应该在CMakeLists.txt 中使用find_package 请求什么包?现在我有:find_package(Boost COMPONENTS program_options regex REQUIRED)。我没有任何错误,但我怀疑这是因为我安装了所有的 boost 库。
【问题讨论】: