我怎么可以把一个单一的元素了Boost库(例如shared_pointer)的? [英] How can I take a single element out of a boost library (e.g. shared_pointer)?
问题描述
我已经与一些升压组件玩耍,并且是唯一一个我看到的直接需要在项目中我的工作是的boost :: shared_ptr的
I've been playing around with some Boost components, and the only one I see a direct need for in the project I'm working on is boost::shared_ptr
.
难道是很难只包括的shared_ptr
所需的文件,或至少只是在自己的项目的升压smart_ptr目录中的文件?他们似乎有加速的其他部位一些外部的依赖 - 但我想有一个简单的方法来只使用Boost库的某些组件,我失踪了。
Would it be difficult to just include the required files for shared_ptr
, or at least just include files for the Boost smart_ptr directory in my project? They seem to have some external dependencies on other parts of Boost - but I figure there's an easy way to just use certain components of the Boost library and I'm missing it.
如果你能告诉我我需要什么零件或指向我一个很好的教程,我会非常感激!
If you can tell me what parts I need or point me to a good tutorial I'd be most grateful!
推荐答案
您可以使用 BCP 工具只提取你想要的标题。
You can use the bcp tool to extract only the header you want.
bcp shared_ptr /foo
此副本的shared_ptr
和所有的依赖到目录的富的
This copies shared_ptr
and all dependencies to the directory foo
这篇关于我怎么可以把一个单一的元素了Boost库(例如shared_pointer)的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!