Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的项目使用 boost 库,但我想从 /usr/include/sys/socket.h 调用 bind() 函数。编译失败,因为编译器采用 boost::find 函数而不是我想要使用的函数。有任何想法吗?谢谢
我看到了两种可能的解决方案:
using namespace boost
boost::bind( )
::bind()
如果解决方案 1 因任何原因不可接受,我建议解决方案 1 为可取,而解决方案 2 为临时方案。