C++ 注意:在构建CGAL代码时:不推荐在全局命名空间中声明绑定占位符(_1,_2,…)的做法

C++ 注意:在构建CGAL代码时:不推荐在全局命名空间中声明绑定占位符(_1,_2,…)的做法,c++,boost,cmake,cgal,C++,Boost,Cmake,Cgal,当我使用cmake构建CGAL示例时,我注意到: #pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_P

当我使用
cmake
构建CGAL示例时,我注意到:

#pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.
#pragma消息:不推荐在全局命名空间中声明绑定占位符(_1,_2,…)的做法。请使用+使用命名空间boost::占位符,或定义boost\u BIND\u GLOBAL\u占位符以保留当前行为。
我试图在代码的最开始添加
#define BOOST\u BIND\u NO\u占位符
,并在main中使用名称空间BOOST\u BIND\u GLOBAL\u占位符,但它不起作用。代码可以构建,只是一个非常烦人的注释

BOOST版本=1.73
GCC版本=7.5.0

您应该打开一个包含更多详细信息的应用程序,包括boost版本、编译器版本……您可以添加更多详细信息吗?哪一个示例会产生此警告消息?testsuite包含此版本的boost,没有显示任何警告。您正在使用哪些编译选项?是否定义了任何特定的宏?我尝试在有问题的include行之前添加“```定义BOOST\u BIND\u NO\u占位符````并为我解决了警告问题。谢谢;-)请确保在所有有问题的include行之前包含此内容。(试用Boost 1.74)