我曾尝试将 clang 3.0 与 libc++ 和 C++0x 结合使用。
我已经用 libc++ 编译了 boost 1.48,根据 How to compile/link Boost with clang++/libc++? 升压/信号损坏。
因此,我正在寻找升压/信号的替代品,以及 Jae's Fast Delegate看起来不错,除了它依赖于早期版本的 boost。
#include <boost/pending/ct_if.hpp>
上面的文件已在 1.48 中删除。
那么,是否有其他候选多播委托(delegate)/信号可与 clang 3.0 和 C++0x 一起使用?
最佳答案
只需替换boost::ct_if
与 boost::mpl::if_c
(和 #include <boost/mpl/if.hpp>
)在 Jae 的快速委托(delegate)代码中。
关于c++ - 与 Clang 和 Boost 1.48 一起工作的多播委托(delegate)/信号库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9365852/