c++ - What Boost package should I search for with cmake to include code from Boost Functional? -
in code, want make use of boost::hash<pair<int, int>>
, need to:
#include <boost/functional/hash.hpp>
i use cmake
build project. package should request find_package
in cmakelists.txt
? right have: find_package(boost components program_options regex required)
. don't have errors, suspect reason have boost libraries installed.
functional header library, don't need add anything, because header libraries not linked. see which boost libraries header-only? or http://www.boost.org/doc/libs/1_53_0/more/getting_started/unix-variants.html#header-only-libraries.
Comments
Post a Comment