我认为使用boost bcp工具中的namespace选项可以重命名所列模块的包含和定义。然而,在运行该工具并检查输出后,似乎并没有实现这一点。如果它们仍然包含
我使用了以下bcp命令:
一个文件的快速grep结果如下:
我非常确定这是使用带有命名空间选项的bcp工具的用例,但是,我显然误解了一些常见的C++概念/用法,对吧?或者,也许我在错误地使用该工具吗?
提前感谢任何见解。
#include <boost/*>
并且期望最终用户的 #include <boost/*>
不会导致版本冲突,那我该如何重新分发它们呢?它只是用命名空间包装这些吗?我使用了以下bcp命令:
.\boost_1_53_0\dist\bin\bcp.exe --boost=boost_1_53_0 --namespace=myboost --namespace-alias smart_ptr filesystem array.hpp container move ptr_container algorithm/string.hpp tokenizer.hpp thread chrono atomic foreach.hpp build myboost
一个文件的快速grep结果如下:
[boost]grep -e "boost/" algorithm\string.hpp
grep -e "boost/" algorithm\string.hpp
#include <boost/algorithm/string/std_containers_traits.hpp>
#include <boost/algorithm/string/trim.hpp>
#include <boost/algorithm/string/case_conv.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/algorithm/string/find.hpp>
#include <boost/algorithm/string/split.hpp>
#include <boost/algorithm/string/join.hpp>
#include <boost/algorithm/string/replace.hpp>
#include <boost/algorithm/string/erase.hpp>
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/find_iterator.hpp>
我非常确定这是使用带有命名空间选项的bcp工具的用例,但是,我显然误解了一些常见的C++概念/用法,对吧?或者,也许我在错误地使用该工具吗?
提前感谢任何见解。