Using Boost unordered_map

boost, c++, unordered-map

Solution

Use `bcp`: http://www.boost.org/doc/libs/1_52_0/tools/bcp/doc/html/index.html

cd $BOOST_DIR
bcp unordered_map /tmp/TEST

Now /tmp/TEST contains only the things required for `unordered_map`, in my case 15Mb (as opposed to 734Mb for the full boost library)

Problem

I want to include `boost::unordered_map` in my project without downloading the whole Boost package. How can I do that?

Original source