using parts of Boost

2020-02-24 13:26发布

问题:

I know that it is, of course, possible only to use the parts of Boost that you want to use, but my point was, I want to keep my project folder slim. The project should be able to be checked out with all dependencies, and I just noticed while unpacking boost that it is around 33 thousand files and more than 250 megabytes, and I am using one single class of it (tokenizer).

Is it possible only to include a portion of Boost into a project?

回答1:

You can use bcp to extract only the subset of boost required by your project.



回答2:

Sure, but you would have to look through and copy all of the dependancies from tokenizer as well (recursively). It is probably going to be a rather big pain. I also don't know enough about licenses to know if they are ok with you distributing it.



标签: c++ boost